Files
pole-book/server/node_modules/@strapi/i18n/dist/shared/contracts/iso-locales.d.ts

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;
};
}