mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
* [PS-713] Fix locale search bug * [PS-713] Add new locales to start at 1 char search * [PS-713] Switch to ReplaySubject and other edits from PR comments * PS-713: Add destroy to other sub and make locale inline a const * PS-713: Use firstValueFrom instead of takeUntil * PS-713: get this.locale asynchronously Co-authored-by: Colton Hurst <churst@bitwarden.com>
12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
export abstract class I18nService {
|
|
locale$: Observable<string>;
|
|
supportedTranslationLocales: string[];
|
|
translationLocale: string;
|
|
collator: Intl.Collator;
|
|
localeNames: Map<string, string>;
|
|
t: (id: string, p1?: string, p2?: string, p3?: string) => string;
|
|
translate: (id: string, p1?: string, p2?: string, p3?: string) => string;
|
|
}
|