mirror of
https://github.com/strapi/strapi.git
synced 2025-07-16 13:32:05 +00:00
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;
|
||
|
};
|
||
|
}
|