Skip to content

Commit

Permalink
Merge pull request #11 from l1shen/fix-locale-file-name
Browse files Browse the repository at this point in the history
chore: fix i18n file name
  • Loading branch information
yantze authored May 20, 2022
2 parents f64442f + c9389b6 commit 18c5d0d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions src/common/i18n/en-US.lang.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export const localizationBundle = {
languageId: 'zh-CN',
languageName: 'Chinese',
localizedLanguageName: '中文(中国)',
languageId: 'en-US',
languageName: 'English',
localizedLanguageName: 'English',
contents: {
'common.about': '关于',
'common.preferences': '首选项',
'common.about': 'About',
'common.preferences': 'Preferences',

'custom.quick_open': '转到文件',
'custom.command_palette': '显示所有命令',
'custom.terminal_panel': '切换终端',
'custom.search_panel': '切换搜索面板',
'custom.quick_open': 'Quick Open',
'custom.command_palette': 'Command Palette',
'custom.terminal_panel': 'Switch to Terminal Panel',
'custom.search_panel': 'Switch to Search Panel',
},
}
};
2 changes: 1 addition & 1 deletion src/common/i18n/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import { localizationBundle as en } from './en-US.lang';

// 先初始化语言包
registerLocalizationBundle(zh);
registerLocalizationBundle(en);
registerLocalizationBundle(en);
20 changes: 10 additions & 10 deletions src/common/i18n/zh-CN.lang.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export const localizationBundle = {
languageId: 'en-US',
languageName: 'English',
localizedLanguageName: 'English',
languageId: 'zh-CN',
languageName: 'Chinese',
localizedLanguageName: '中文(中国)',
contents: {
'common.about': 'About',
'common.preferences': 'Preferences',
'common.about': '关于',
'common.preferences': '首选项',

'custom.quick_open': 'Quick Open',
'custom.command_palette': 'Command Palette',
'custom.terminal_panel': 'Switch to Terminal Panel',
'custom.search_panel': 'Switch to Search Panel',
'custom.quick_open': '转到文件',
'custom.command_palette': '显示所有命令',
'custom.terminal_panel': '切换终端',
'custom.search_panel': '切换搜索面板',
},
}
};

0 comments on commit 18c5d0d

Please sign in to comment.