laravel-inertia-react-translator
Version:
A integration for i18n in inertia with laravel for react
17 lines (15 loc) • 399 B
text/typescript
export type Dictionary = Record<string, any> | (() => Record<string, any>);
export type ReplaceObject =
| Record<string, string | number>
| string
| number
| null;
export type ComposedKeyResult = {
key: string;
count: number | null;
replace: ReplaceObject;
};
export type TranslationProviderProps = {
children: React.ReactNode;
getDictionary: () => Dictionary;
};