mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
refactor(setting): adjust setting module to new core translation
Closes #53
This commit is contained in:
@@ -36,7 +36,7 @@ export class AppComponent {
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
component: any;
|
||||
component: unknown;
|
||||
/**
|
||||
* TODO
|
||||
*/
|
||||
@@ -44,7 +44,7 @@ export class AppComponent {
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param platform TODO
|
||||
* @param statusBar TODO
|
||||
* @param splashScreen TODO
|
||||
@@ -97,7 +97,7 @@ export class AppComponent {
|
||||
|
||||
try {
|
||||
// set language from settings
|
||||
const languageCode = await this.settingsProvider.getValue('profile', 'language');
|
||||
const languageCode = (await this.settingsProvider.getValue('profile', 'language')) as string;
|
||||
this.translateService.use(languageCode);
|
||||
} catch (error) {
|
||||
Logger.warn(error);
|
||||
|
||||
Reference in New Issue
Block a user