Commit cec192d1 authored by Lang Hai's avatar Lang Hai Committed by Eugen Rochko

Add Simplified Chinese locale (#50)

parent 0f4a73ef
......@@ -17,8 +17,9 @@ import es from 'react-intl/locale-data/es';
import de from 'react-intl/locale-data/de';
import ja from 'react-intl/locale-data/ja';
import pt from 'react-intl/locale-data/pt';
import zh from 'react-intl/locale-data/zh';
addLocaleData([...en, ...pl, ...fr, ...es, ...ja, ...de, ...pt]);
addLocaleData([...en, ...pl, ...fr, ...es, ...ja, ...de, ...pt, ...zh]);
const messages = require.context('./locales/', false, /\.json$/);
......
......@@ -8,6 +8,7 @@ import flagEs from 'twemoji/2/svg/1f1ea-1f1f8.svg';
import flagJa from 'twemoji/2/svg/1f1ef-1f1f5.svg';
import flagDe from 'twemoji/2/svg/1f1e9-1f1ea.svg';
import flagBr from 'twemoji/2/svg/1f1e7-1f1f7.svg';
import flagCn from 'twemoji/2/svg/1f1e8-1f1f3.svg';
const options = [
......@@ -17,7 +18,8 @@ const options = [
{ value: 'es', label: <span><img src={flagEs} className='emoji' alt='' /> Español</span> },
{ value: 'pl', label: <span><img src={flagPl} className='emoji' alt='' /> Polski</span> },
{ value: 'pt-BR', label: <span><img src={flagBr} className='emoji' alt='' /> Português do Brasil</span> },
{ value: 'ja', label: <span><img src={flagJa} className='emoji' alt='' /> 日本語</span> }
{ value: 'ja', label: <span><img src={flagJa} className='emoji' alt='' /> 日本語</span> },
{ value: 'zh', label: <span><img src={flagCn} className='emoji' alt='' /> 简体中文</span> }
];
export default class LanguageSelect extends PureComponent {
......
[
]
\ No newline at end of file
{
"credits.branding": "宣传",
"credits.branding_text": "下载Logo及图标",
"credits.color_scheme": "长毛象色彩搭配方案",
"credits.get_press_kit": "获取宣传资料",
"credits.sponsors": "捐助",
"credits.support_on_patreon": "使用Patreon捐助",
"credits.support_text": "长毛象是一个自由免费的开源项目,这里没有广告、变现手段以及商业投资。您的捐助将直接用于本项目的全职开发工作。",
"credits.view_sponsors": "查看捐助人列表",
"features.additional": "附加功能",
"features.anti_abuse": "强大的反骚扰工具",
"features.deploy_own": "搭建实例简单便捷",
"features.find_your_community": "属于你的完美社区",
"features.find_your_community_text": "长毛象不仅仅是一个网站,一套规则,而是包含着不同的人群、兴趣、语言以及需求的<strong>上千个可供选择且互通互联的社区</strong>。 不喜欢碍手碍脚的社区规则?你可以自由选择加入哪个社区,甚至更好——你可以搭建属于你自己的社区并亲自制定规则!",
"features.huge_audience": "数量庞大的用户群",
"features.media_embedding": "在你的嘟文中嵌入媒体",
"features.open_standards": "基于开放Web标准开发",
"features.post_filtering": "灵活的嘟文过滤功能",
"features.relevancy": "定制你想看到的信息",
"features.safety": "享受完全的隐私控制",
"features.safety_text": "长毛象拥有<strong>高效的反骚扰功能</strong>来帮助你远离互联网骚扰。因为长毛象众多分散且互联的小社区,这不仅意味着你可以从<strong>更多的管理员</strong>那里获得帮助,并且你可以选择谁可以看到你的嘟文:你的朋友,你的社区,或者整个长毛象宇宙。",
"features.spoiler_warnings": "内容警告标签",
"features.take_control": "掌控你的社交内容",
"features.take_control_text": "以强大的隐私控制功能来选择谁可以看到你的嘟文,以及高达500字符的字数限制,长毛象使你能够完整得分享自己的想法。最赞的是,<strong>所有的嘟文均按时间先后顺序排列</strong>,没有充斥着广告及营销信息的所谓“优化时间轴”。众多app支持安卓,苹果以及任何你能想到的设备,让长毛象<strong>永远触手可及</strong>",
"features.toots": "嘟文、嘟嘟、嘟主、转嘟",
"features.user_first": "你才是被服务的对象",
"features.user_first_text": "作为用户,你并不是一件商品。长毛象是一个自由免费且通过众筹而非商业赞助开发的开源项目。所有的实例均是<strong>自主搭建、独立运营,管理的</strong>。这里没有一家独大的垄断公司,没有广告,也没有监控。<strong>长毛象为你效力</strong>,而不是反过来让用户为社交网络打工。",
"home.as_seen_on": "媒体报道",
"home.get_started": "开始使用长毛象",
"home.headline": "社交网络,<strong>交还予你</strong>",
"home.how_it_works": "长毛象工作原理",
"home.install_your_own": "搭建属于你自己的实例",
"home.install_your_own_text": "如果你有兴趣给你自己,你的朋友,你的公司或组织搭建一个长毛象实例,你可以从阅读长毛象安装文档着手。",
"home.read_the_docs": "阅读安装文档",
"home.tagline": "全球最大的自由,免费,开源,去中心化的微博社交网络",
"how_it_works.how_it_works": "长毛象工作原理",
"how_it_works.how_it_works_text1": "任何人都可以架设一台长毛象服务器(实例)。每个长毛象实例都拥有自己的用户账号,用户所产生的内容,以及用户订阅的其他实例的内容。",
"how_it_works.how_it_works_text2": "每个长毛象用户都拥有一个由本地用户名(@用户名)及其所在的实例域名(实例地址.com)组成的唯一标识(如 @用户名@实例地址.com)",
"how_it_works.how_it_works_text3": "无论对方属于哪一个长毛象实例,用户都可以互相关注——当一个本地用户关注了某跨站用户后,该服务器会开始订阅此远程用户的内容。",
"how_it_works.why_its_cool": "长毛象的优势",
"how_it_works.why_its_cool_text": "长毛象的众多实例是由不同的人或组织独立运营的。实例和实例之间可能会有天差地别的文化和管理条例,所以你一定可以找到或者自己搭建一个最适合你的实例。去中心化的社交网络使得政府机构的审查及屏蔽工作难度更大。一个实例倒下,整个长毛象宇宙依然存在,所以你可以随时将你的朋友圈和订阅信息搬迁到另外一个实例而永远不用为此担心。",
"nav.code": "源代码",
"nav.docs": "文档",
"nav.sponsors": "捐助",
"nav.support": "帮助",
"sponsorship.become_a_sponsor": "成为捐助者",
"sponsorship.every_bit_helps": "一点一滴均是温情,我们感谢所有的资助。",
"sponsorship.silver_sponsors": "白银捐助者",
"sponsorship.silver_sponsors_text": "<strong>白银捐助者</strong> 为每月为长毛象项目捐助$40 - $99的捐助者。",
"sponsorship.sponsors": "其他捐助者",
"sponsorship.sponsors_of_mastodon": "长毛象项目捐助者列表",
"sponsorship.sponsors_text": "<strong>其他捐助者</strong> 为每月为长毛象项目捐助$10 - $39的捐助者。",
"sponsorship.support_the_project": "资助长毛象项目",
"sponsorship.thanks_to": "长毛象是一个<strong>自由免费的开源软件</strong>。这里没有广告、变现手段以及商业投资。<strong>您的捐助将直接用于长毛象项目的全职开发工作</strong>。特别鸣谢以下的个人及企业捐助者:",
"wizard.column.population": "用户数量",
"wizard.column.server": "实例地址",
"wizard.column.stability": "网络质量",
"wizard.column.theme": "内容主题",
"wizard.get_started": "<strong>开始使用长毛象:</strong> 选择一个实例",
"wizard.help_me_choose": "帮助我选择",
"wizard.search": "搜索实例",
"wizard.text": "每一个独立自主运营的实例都是一扇通往整个长毛象宇宙的大门。无论你选择入驻哪一个实例,你都可以和你的朋友或任意其他长毛象用户交互。但因为不同的实例有不同的管理制度和兴趣话题,所以请选择一个最符合你要求的实例吧。",
"wizard.tip": "注意:",
"wizard.tip_text": "你所选择的实例并不仅仅是你安家的地方,也决定了其他用户联系你的地址。你会像使用电子邮箱一样得到一个例如<samp>@用户名@实例地址.com</samp>的唯一标识。",
"wizard_row.population.full": "满",
"wizard_row.population.medium": "中",
"wizard_row.population.new": "新",
"wizard_row.stability.awful": "极差",
"wizard_row.stability.intermittent": "中等",
"wizard_row.stability.stable": "稳定"
}
......@@ -3,5 +3,5 @@ const manageTranslations = require('react-intl-translations-manager').default;
manageTranslations({
messagesDirectory: 'build/messages',
translationsDirectory: 'src/locales/',
languages: ['en', 'fr', 'pl', 'es', 'ja', 'de', 'pt-BR']
languages: ['en', 'fr', 'pl', 'es', 'ja', 'de', 'pt-BR', 'zh']
});
......@@ -88,6 +88,12 @@ ansi-styles@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
ansi-styles@^3.1.0, ansi-styles@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88"
dependencies:
color-convert "^1.9.0"
ansicolors@~0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef"
......@@ -1441,6 +1447,14 @@ chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
chalk@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e"
dependencies:
ansi-styles "^3.1.0"
escape-string-regexp "^1.0.5"
supports-color "^4.0.0"
chokidar@^1.0.0:
version "1.6.1"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2"
......@@ -1558,7 +1572,7 @@ collections@^0.2.0:
dependencies:
weak-map "1.0.0"
color-convert@^1.3.0:
color-convert@^1.3.0, color-convert@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a"
dependencies:
......@@ -1742,7 +1756,7 @@ cross-spawn@^3.0.0:
lru-cache "^4.0.1"
which "^1.2.9"
cross-spawn@^5.0.1:
cross-spawn@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
dependencies:
......@@ -2888,6 +2902,10 @@ has-flag@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
has-flag@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51"
has-unicode@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
......@@ -3979,6 +3997,12 @@ memory-fs@~0.4.1:
errno "^0.1.3"
readable-stream "^2.0.1"
memory-streams@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/memory-streams/-/memory-streams-0.1.2.tgz#273ff777ab60fec599b116355255282cca2c50c2"
dependencies:
readable-stream "~1.0.2"
meow@^3.7.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
......@@ -4265,14 +4289,16 @@ normalize-url@^1.4.0:
query-string "^4.1.0"
sort-keys "^1.0.0"
npm-run-all@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.0.2.tgz#a84669348e6db6ccbe052200b4cdb6bfe034a4fe"
npm-run-all@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.1.1.tgz#3095cf3f3cacf57fcb662b210ab10c609af6ddbb"
dependencies:
chalk "^1.1.3"
cross-spawn "^5.0.1"
minimatch "^3.0.2"
ps-tree "^1.0.1"
ansi-styles "^3.2.0"
chalk "^2.1.0"
cross-spawn "^5.1.0"
memory-streams "^0.1.2"
minimatch "^3.0.4"
ps-tree "^1.1.0"
read-pkg "^2.0.0"
shell-quote "^1.6.1"
string.prototype.padend "^3.0.0"
......@@ -4879,7 +4905,7 @@ prr@~0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a"
ps-tree@^1.0.1:
ps-tree@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014"
dependencies:
......@@ -5147,7 +5173,7 @@ read-pkg@^2.0.0:
normalize-package-data "^2.3.2"
path-type "^2.0.0"
readable-stream@1.0:
readable-stream@1.0, readable-stream@~1.0.2:
version "1.0.34"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c"
dependencies:
......@@ -5820,6 +5846,12 @@ supports-color@^3.1.0, supports-color@^3.1.1, supports-color@^3.1.2, supports-co
dependencies:
has-flag "^1.0.0"
supports-color@^4.0.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e"
dependencies:
has-flag "^2.0.0"
svgo@^0.7.0:
version "0.7.2"
resolved "https://registry.yarnpkg.com/svgo/-/svgo-0.7.2.tgz#9f5772413952135c6fefbf40afe6a4faa88b4bb5"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment