mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 02:23:44 +00:00
[EC-772] Add i18n key typechecking in web (#4023)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { APP_INITIALIZER, NgModule } from "@angular/core";
|
||||
|
||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
||||
import { I18nService as BaseI18nService } from "@bitwarden/common/services/i18n.service";
|
||||
import { I18nServiceImplementation } from "@bitwarden/common/services/i18n.service.implementation";
|
||||
|
||||
import eng from "../../locales/en/messages.json";
|
||||
|
||||
class PreloadedEnglishI18nService extends BaseI18nService {
|
||||
class PreloadedEnglishI18nService extends I18nServiceImplementation {
|
||||
constructor() {
|
||||
super("en", "", () => {
|
||||
return Promise.resolve(eng);
|
||||
|
||||
Reference in New Issue
Block a user