Fluent
Constructors
ts
Fluent(options?: FluentOptions);
Methods
addTranslation
ts
addTranslation(options: AddTranslationOptions): Promise<void>;
addTranslationSync
ts
addTranslationSync(options: AddTranslationOptions): void;
translate
ts
translate<K extends string>(
localeOrLocales: MaybeArray<LocaleId>,
path: string,
context?: TranslationVariables<K>,
): string;
withLocale
ts
withLocale(localeOrLocales: MaybeArray<LocaleId>);
Returns translation function bound to the specified locale(s).