meteor / todos

The example app "Todos", written following the Meteor Guide
Other
535 stars 367 forks source link

Problem with i18n, add the Chinese locale i18n/zh.i18n.json, see the links "en fr zh", but "zh" link does not work. #214

Open K69G4JRA725W opened 7 years ago

K69G4JRA725W commented 7 years ago

I added the Chinese locale file: i18n/zh.i18n.json, was able to see the links "en fr zh", but "zh" link does not work. Here is the file content.

{ "lists": { "makePrivate": { "notLoggedIn": "必须登录才能改成私有列表。", "lastPublicList": "不能把最后一个公共列表改成私有。" }, "makePublic": { "notLoggedIn": "必须登录。", "accessDenied": "你没有许可修改这个列表。" }, "updateName": { "accessDenied": "你没有许可修改这个列表。" }, "remove": { "accessDenied": "'你没有许可删除这个列表。'", "lastPublicList": "不能删除最后一个公共列表。", "confirm": "你确信你想删除这个列表吗?" }, "show": { "cancel": "取消", "showMenu": "显示目录", "selectAction": "选择指令", "makePublic": "变成共有", "makePrivate": "变成私有", "delete": "删除", "makeListPublic": "变成共有列表", "makeListPrivate": "变成私有列表", "deleteList": "删除列表", "typeToAdd": "键入并添加新任务", "noTasks": "此处无任务", "addAbove": "用以上字段添加新任务", "loading": "加载任务..." }, "insert": { "list": "列表" } }, "todos": { "insert": { "accessDenied": "不能添加 todos 到不是你的私有列表" }, "setCheckedStatus": { "accessDenied": "不能修改 todos 到不是你的私有列表" }, "updateText": { "accessDenied": "不能添加 todos 到不是你的私有列表" }, "remove": { "accessDenied": "不能删除 todos 到不是你的私有列表" }, "item": { "taskName": "任务名称" } }, "useraccounts": { "atTitle": { "subtitle": "登录后你会得到私有列表" } }, "layouts": { "appBody": { "logout": "退出", "login": "注册", "join": "加入", "newList": "新列表", "newListError": "不能建立列表。", "tryingToConnect": "努力联接", "connectionIssue": "好像联接有问题" } }, "pages": { "appNotFound": { "pageNotFound": "找不到页面" } } }

abernix commented 7 years ago

First of all, this would be a great contribution if you could make it into a PR after you're done!

As far as the problem itself, maybe we need to update tap:i18n? They have some Chinese-related changes in the last commits. I haven't investigated further though.