mirror of
https://github.com/strapi/strapi.git
synced 2025-07-13 20:11:47 +00:00

* 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
27 lines
460 B
TypeScript
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;
|
|
};
|
|
}
|