Merge pull request #2571 from nwind/fix-app-translate

fix: app 中有部分文字未翻译
This commit is contained in:
RickCole 2021-09-16 14:52:17 +08:00 committed by GitHub
commit 825b36e65c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{
"name": "amis",
"version": "1.2.4-beta.5",
"version": "1.2.4-beta.9",
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
"scripts": {

View File

@ -4,6 +4,8 @@ register('de-DE', {
'Action.countDown': '${timeLeft} warten',
'Alert.info': 'Systeminformationen',
'asc': 'Aufsteigend',
'App.home': 'Startseite',
'App.navigation': 'Navigation',
'cancel': 'Abbrechen',
'Card.dragTip': 'Obere Schaltfläche zum Sortieren ziehen',
'Card.toggleDrag': 'Zum Sortieren umschalten',

View File

@ -3,6 +3,8 @@ import {register} from '../locale';
register('en-US', {
'Action.countDown': 'Wait for ${timeLeft}s',
'Alert.info': 'System Info',
'App.home': 'Home',
'App.navigation': 'Navigation',
'asc': 'Asc',
'cancel': 'Cancel',
'Card.dragTip': 'Drag top button to sort',

View File

@ -3,6 +3,8 @@ import {register} from '../locale';
register('zh-CN', {
'Action.countDown': '请等待 ${timeLeft} 秒',
'Alert.info': '系统消息',
'App.home': '首页',
'App.navigation': '导航',
'asc': '正序',
'cancel': '取消',
'Card.dragTip': '请拖动顶部的按钮进行排序',

View File

@ -45,12 +45,8 @@ export const AppStore = ServiceStore.named('AppStore')
return [
{
label: '导航',
children: [
{
label: '暂无页面'
}
]
label: self.__('App.navigation'),
children: []
}
];
},
@ -148,9 +144,10 @@ export const AppStore = ServiceStore.named('AppStore')
...item,
path: ''
});
self.__;
if (bcn[0].path !== '/') {
bcn.unshift({
label: '首页',
label: self.__('App.home'),
path: '/'
});
}