Fix culture injection for home page

This commit is contained in:
Sipke Schoorstra 2021-11-25 11:31:08 +01:00
parent 70d661dd60
commit beaaf6eafb
2 changed files with 3 additions and 1 deletions

View file

@ -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']);

View file

@ -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': '使用应用程序仪表盘来管理所有事情。'