22 lines
455 B
TypeScript
22 lines
455 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 {
|
|
interface Request {
|
|
query: {};
|
|
body: {};
|
|
}
|
|
/**
|
|
* TODO: this should follow the usual `data/error` pattern.
|
|
*/
|
|
type Response = ISOLocale[] | {
|
|
data: null;
|
|
error: errors.ApplicationError;
|
|
};
|
|
}
|