Skip to content

Commit

Permalink
change the i18n files to 'xx-XX'
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiii committed Aug 30, 2015
1 parent 153270f commit 64b8dd5
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 2 deletions.
3 changes: 3 additions & 0 deletions assets/i18n/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Fighter Power ": "FP "
}
19 changes: 19 additions & 0 deletions assets/i18n/ja-JP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"select fleet": "选择舰队",
"title": "タイトル",
"save": "保存する",
"Organization Records": "編成日記",
"add record": "记录编成",
"keywords": "キーワード",
"Total Lv ": "合計 Lv ",
"Avg Lv ": "平均 Lv ",
"Fighter Power ": "制空 ",
"LOS ": "索敵 ",
" Autumn": " 秋式",
" Old": " 旧式",
"save error": "保存错误",
"The title is already exist.": "标题已存在",
"Delete": "削除する",
"Records": "记录",
"Add": "添加"
}
33 changes: 33 additions & 0 deletions assets/i18n/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"Select fleet": "选择舰队",
"Title": "标题",
"Save": "保存",
"Organization Records": "编成日记",
"Add Record": "记录编成",
"Keywords": "关键词",
"Total Lv ": "总 Lv ",
"Avg Lv ": "均 Lv ",
"Fighter Power ": "制空 ",
"LOS ": "索敌 ",
" Autumn": " 秋式",
" Old": " 旧式",
"Error": "错误",
"The title is already exist.": "标题已存在。",
"Delete": "删除",
"Records": "记录",
"Add": "添加",
"Edit": "编辑",
"Add tags": "添加条件",
"Ship type": "舰种",
"Do not add": "不能带",
"Ship name": "舰名",
"Slot items": "装备",
"Number": "数量",
"Import": "导入",
"Export": "导出",
"Import code": "导入代码",
"Code": "代码",
"Incorrect code.": "代码不正确,无法导入。",
"Select title": "选择标题",
"Select type": "选择类型"
}
19 changes: 19 additions & 0 deletions assets/i18n/zh-TW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"select fleet": "選擇艦隊",
"title": "標題",
"save": "保存",
"Organization Records": "編成日記",
"add record": "記錄編成",
"keywords": "關鍵詞",
"Total Lv ": "總 Lv ",
"Avg Lv ": "均 Lv ",
"Fighter Power ": "制空 ",
"LOS ": "索敵 ",
" Autumn": " 秋式",
" Old": " 舊式",
"save error": "保存錯誤",
"The title is already exist.": "標題已存在",
"Delete": "刪除",
"Records": "記錄",
"Add": "增加"
}
4 changes: 2 additions & 2 deletions index.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ i18n = require './node_modules/i18n'

# i18n configure
i18n.configure({
locales: ['en_US', 'ja_JP', 'zh_CN', 'zh_TW'],
defaultLocale: 'zh_CN',
locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW'],
defaultLocale: 'zh-CN',
directory: join(__dirname, 'assets', 'i18n'),
updateFiles: false,
indent: '\t',
Expand Down

0 comments on commit 64b8dd5

Please sign in to comment.