Josh e04af2df77
chore(i18n): convert settings as associated components to TS (#18809)
* chore(i18n): rename getTrads to getTranslations

* chore(i18n): convert settings as associated components to TS

* chore: remove utils index file

* chore(admin): remove unused directive
2023-11-16 14:11:34 +00:00

27 lines
460 B
TypeScript

import { errors } from '@strapi/utils';
export interface ISOLocale {
code: string;
name: string;
}
/**
* GET /i18n/iso-locales - Get all the locales
*/
export declare namespace GetISOLocales {
export interface Request {
query: {};
body: {};
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
export type Response =
| ISOLocale[]
| {
data: null;
error: errors.ApplicationError;
};
}