mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[EC-772] Add i18n key typechecking in web (#4023)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
export abstract class I18nService {
|
||||
export abstract class I18nService<TKey = string> {
|
||||
locale$: Observable<string>;
|
||||
supportedTranslationLocales: string[];
|
||||
translationLocale: string;
|
||||
collator: Intl.Collator;
|
||||
localeNames: Map<string, string>;
|
||||
t: (id: string, p1?: string | number, p2?: string | number, p3?: string | number) => string;
|
||||
translate: (id: string, p1?: string, p2?: string, p3?: string) => string;
|
||||
t: (id: TKey, p1?: string | number, p2?: string | number, p3?: string | number) => string;
|
||||
translate: (id: TKey, p1?: string, p2?: string, p3?: string) => string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user