@forge/api
6.4.1-next.0-experimental-90651456.4.1
out/api/i18n.d.tsout/api/i18n.d.ts+5−5
Index: package/out/api/i18n.d.ts
===================================================================
--- package/out/api/i18n.d.ts
+++ package/out/api/i18n.d.ts
@@ -1,10 +1,10 @@
-import { type ForgeSupportedLocaleCode, type GetTranslationsOptions, type GetTranslationsResult } from '@forge/i18n';
+import { type GetTranslationsOptions, type GetTranslationsResult } from '@forge/i18n';
export declare const resetTranslationsCache: () => void;
-export declare const getTranslations: (locale: ForgeSupportedLocaleCode, options?: GetTranslationsOptions) => Promise<GetTranslationsResult>;
+export declare const getTranslations: (rawLocale: string, options?: GetTranslationsOptions) => Promise<GetTranslationsResult>;
export declare type TranslationFunction = (i18nKey: string, defaultValue?: string) => string;
-export declare const createTranslationFunction: (locale: ForgeSupportedLocaleCode) => Promise<TranslationFunction>;
+export declare const createTranslationFunction: (rawLocale: string) => Promise<TranslationFunction>;
export declare const i18n: {
- createTranslationFunction: (locale: ForgeSupportedLocaleCode) => Promise<TranslationFunction>;
- getTranslations: (locale: ForgeSupportedLocaleCode, options?: GetTranslationsOptions) => Promise<GetTranslationsResult>;
+ createTranslationFunction: (rawLocale: string) => Promise<TranslationFunction>;
+ getTranslations: (rawLocale: string, options?: GetTranslationsOptions) => Promise<GetTranslationsResult>;
};
//# sourceMappingURL=i18n.d.ts.map
\ No newline at end of file