Fix culture injection for home page
This commit is contained in:
parent
70d661dd60
commit
beaaf6eafb
|
|
@ -4,6 +4,7 @@ import {GetIntlMessage, IntlMessage} from "../../../i18n/intl-message";
|
|||
import {loadTranslations} from "../../../i18n/i18n-loader";
|
||||
import {resources} from "./localizations";
|
||||
import {i18n} from "i18next";
|
||||
import Tunnel from "../../../../data/dashboard";
|
||||
|
||||
@Component({
|
||||
tag: 'elsa-studio-home',
|
||||
|
|
@ -52,3 +53,4 @@ export class ElsaStudioHome {
|
|||
);
|
||||
}
|
||||
}
|
||||
Tunnel.injectProps(ElsaStudioHome, ['culture']);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export const resources = {
|
|||
'Tagline': 'Use the dashboard app to manage all the things.'
|
||||
}
|
||||
},
|
||||
'zh-cn': {
|
||||
'zh-CN': {
|
||||
'default': {
|
||||
'Welcome': '欢迎使用{{title}}',
|
||||
'Tagline': '使用应用程序仪表盘来管理所有事情。'
|
||||
|
|
|
|||
Loading…
Reference in a new issue