mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-18 04:06:19 +00:00
fix: ngx-translate defaultLanguage not set
This commit is contained in:
committed by
Wieland Schöbl
parent
72988e9241
commit
581a5b2e55
@@ -152,6 +152,7 @@ const providers: Provider[] = [
|
||||
StorageModule,
|
||||
ThingTranslateModule.forRoot(),
|
||||
TranslateModule.forRoot({
|
||||
defaultLanguage: 'en',
|
||||
loader: {
|
||||
deps: [HttpClient],
|
||||
provide: TranslateLoader,
|
||||
|
||||
@@ -470,11 +470,12 @@ export class SettingsProvider {
|
||||
payload: {category, name, value},
|
||||
});
|
||||
} else {
|
||||
throw new Error(`Value "${value}" of type
|
||||
${typeof value} is not valid for ${setting.inputType}`);
|
||||
throw new Error(`Value "${value}" of type ${typeof value}
|
||||
is not valid for "${setting.inputType}" of "${category}.${name}".
|
||||
Ommiting change`);
|
||||
}
|
||||
} else {
|
||||
throw new Error(`setting ${name} is not provided`);
|
||||
throw new Error(`Setting "${name}" doesn't exisits within "${category}"`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user