Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

update 'translations.js ' for zh-CN support #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions src/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ let text = {
en: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
es: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'],
'pt-BR': ['Do', 'Se', 'Te', 'Qa', 'Qi', 'Sx', 'Sa'],
'zh-CN':['日','一', '二', '三', '四', '五', '六']
},
limit: {
en: 'Limit reached ({{limit}} items max).',
es: 'Limite alcanzado (máximo {{limit}} items).',
'pt-BR': 'Limite atingido (máximo {{limit}} items).'
'pt-BR': 'Limite atingido (máximo {{limit}} items).',
'zh-CN': '达到最大限制({{limit}})'
},
loading: {
en: 'Loading...',
es: 'Cargando...',
'pt-BR': 'Cargando...'
'pt-BR': 'Cargando...',
'zh-CN': '加载中...'
},
minLength: {
en: 'Min. Length',
es: 'Tamaño Mínimo',
'pt-BR': 'Tamanho Mínimo'
'pt-BR': 'Tamanho Mínimo',
'zh-CN': '最小长度'
},
months: {
en: [
Expand All @@ -38,22 +42,30 @@ let text = {
'Abril', 'Maio', 'Junho',
'Julho', 'Agosto', 'Setembro',
'Outubro', 'Novembro', 'Dezembro'
]
],
'zh-CN':[
'一月','二月', '三月',
'四月', '五月', '六月',
'七月','八月', '九月',
'十月', '十一月', '十二月']
},
notSelected: {
en: 'Nothing Selected',
es: 'Nada seleccionado',
'pt-BR': 'Nada selecionado'
'pt-BR': 'Nada selecionado',
'zh-CN': '未选中任何选项'
},
required: {
en: 'Required',
es: 'Requerido',
'pt-BR': 'Requerido'
'pt-BR': 'Requerido',
'zh-CN': '必填'
},
search: {
en: 'Search',
es: 'Buscar',
'pt-BR': 'Buscar'
'pt-BR': 'Buscar',
'zh-CN': '查找'
}
}
export default (lang = 'en') => {
Expand Down