From 1fe654e0963da8c2801561be10de3222055a2497 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Apr 2020 14:55:16 +0200 Subject: Fix peertube interface i18n --- client/src/app/app.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src') diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 55e929e78..ef23c9655 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -81,12 +81,12 @@ export function metaFactory (serverService: ServerService): MetaLoader { { provide: TRANSLATIONS, useFactory: (locale: string) => { - // Default locale, nothing to translate + // Default locale, nothing to translate const completeLocale = getCompleteLocale(locale) if (isDefaultLocale(completeLocale)) return '' const fileLocale = buildFileLocale(locale) - return require(`raw-loader!../locale/angular.${fileLocale}.xlf`) + return require(`raw-loader!../locale/angular.${fileLocale}.xlf`).default }, deps: [ LOCALE_ID ] }, -- cgit v1.2.3