Skip to content

Commit

Permalink
fix(locale): template part string display
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jul 30, 2019
1 parent b9a2328 commit edbb870
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/windows/main/components/AddProfileWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</v-list-tile-action>
<v-list-tile-content>
<v-list-tile-title>
{{ p.name || p.mcversion }}
{{ p.name || `Minecraft: ${p.mcversion}` }}
</v-list-tile-title>
<v-list-tile-sub-title>
Minecraft:
Expand All @@ -40,7 +40,7 @@

<v-list-tile-action>
<v-list-tile-action-text>
profile
{{ $t(`profile.templateSetting.${p.type === 'modpack' ? 'profile': 'server'}`) }}
</v-list-tile-action-text>
</v-list-tile-action>
</v-list-tile>
Expand All @@ -60,7 +60,7 @@

<v-list-tile-action>
<v-list-tile-action-text>
template
{{ $t('profile.templateSetting.modpack') }}
</v-list-tile-action-text>
</v-list-tile-action>
</v-list-tile>
Expand Down
6 changes: 6 additions & 0 deletions static/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@
"noLocalVersion": "No Local Version",
"requireName": "The name is required",
"select": "Select",
"templateSetting": {
"": "Template Setting",
"profile": "This is a existed profile configuration",
"modpack": "This is a modpack configuration",
"server": "This is a existed server configuration"
},
"server": {
"": "Server | Servers",
"acceptingMinecraftVersion": "Accepting Minecraft Version",
Expand Down
6 changes: 6 additions & 0 deletions static/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@
"message": "导出为整合包",
"title": "导出"
},
"templateSetting": {
"": "模板设置",
"profile": "这是一个已有的启动配置",
"modpack": "这是一个整合包配置",
"server": "这是一个已有的服务器启动配置"
},
"forceLocalVersion": "启动指定本地版本",
"forgeSetting": "Forge设置",
"importFolder": "从文件夹导入",
Expand Down

0 comments on commit edbb870

Please sign in to comment.