From 921643b9b2a4e7eaad4fad2a91b095c24d6d8b3b Mon Sep 17 00:00:00 2001 From: admover <1ron3gg@gmail.com> Date: Fri, 3 Sep 2021 11:35:11 +0800 Subject: [PATCH 1/4] Create cn_CN.ts chinese --- l10n/cn_CN.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 l10n/cn_CN.ts diff --git a/l10n/cn_CN.ts b/l10n/cn_CN.ts new file mode 100644 index 00000000..81bb091b --- /dev/null +++ b/l10n/cn_CN.ts @@ -0,0 +1,22 @@ +export default { + search: { + placeholder: '🔍 Busqueda...', + }, + sort: { + sortAsc: 'Ordenar la columna en orden ascendente', + sortDesc: 'Ordenar la columna en orden descendente', + }, + pagination: { + previous: 'Anterior', + next: 'Siguiente', + navigate: (page, pages) => `Página ${page} de ${pages}`, + page: (page) => `Página ${page}`, + showing: 'Mostrando los resultados', + of: 'sobre', + to: 'a', + results: '', + }, + loading: 'Cargando...', + noRecordsFound: 'Nigún resultado encontrado', + error: 'Se produjo un error al recuperar datos', +}; From 96a501a5baa02897884495159b6a1aa178fa7dd5 Mon Sep 17 00:00:00 2001 From: admover <1ron3gg@gmail.com> Date: Fri, 3 Sep 2021 11:44:05 +0800 Subject: [PATCH 2/4] Add new locale (cn_CN) --- l10n/cn_CN.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/l10n/cn_CN.ts b/l10n/cn_CN.ts index 81bb091b..f1f39ed2 100644 --- a/l10n/cn_CN.ts +++ b/l10n/cn_CN.ts @@ -1,22 +1,22 @@ export default { search: { - placeholder: '🔍 Busqueda...', + placeholder: '输入关键字...', }, sort: { - sortAsc: 'Ordenar la columna en orden ascendente', - sortDesc: 'Ordenar la columna en orden descendente', + sortAsc: '升序排列', + sortDesc: '降序排列', }, pagination: { - previous: 'Anterior', - next: 'Siguiente', - navigate: (page, pages) => `Página ${page} de ${pages}`, - page: (page) => `Página ${page}`, - showing: 'Mostrando los resultados', - of: 'sobre', - to: 'a', - results: '', + previous: '上一页', + next: '下一页', + navigate: (page, pages) => `Page ${page} of ${pages}`, + page: (page) => `Page ${page}`, + showing: '第', + of: '到', + to: '页,共', + results: '页', }, - loading: 'Cargando...', - noRecordsFound: 'Nigún resultado encontrado', - error: 'Se produjo un error al recuperar datos', + loading: '玩命加载中...', + noRecordsFound: '没找到匹配的项', + error: '获取数据时发生了错误', }; From 65bd0c5c74df3a9e48d6c4e6548260ba5a325c23 Mon Sep 17 00:00:00 2001 From: admover <1ron3gg@gmail.com> Date: Fri, 3 Sep 2021 11:46:12 +0800 Subject: [PATCH 3/4] Update index.ts --- l10n/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/l10n/index.ts b/l10n/index.ts index 44c722cd..76f952e3 100644 --- a/l10n/index.ts +++ b/l10n/index.ts @@ -6,5 +6,6 @@ import trTR from './tr_TR'; import koKR from './ko_KR'; import ruRU from './ru_RU'; import idID from './id_ID'; +import cnCN from './cn_CN'; -export { esES, frFR, itIT, ptPT, trTR, koKR, ruRU, idID }; +export { esES, frFR, itIT, ptPT, trTR, koKR, ruRU, idID, cnCN }; From 2a535561b33494d9a7c2fe9dc341602f29548428 Mon Sep 17 00:00:00 2001 From: admover <1ron3gg@gmail.com> Date: Fri, 3 Sep 2021 11:54:32 +0800 Subject: [PATCH 4/4] Update cn_CN.ts --- l10n/cn_CN.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/l10n/cn_CN.ts b/l10n/cn_CN.ts index f1f39ed2..295bf671 100644 --- a/l10n/cn_CN.ts +++ b/l10n/cn_CN.ts @@ -9,12 +9,12 @@ export default { pagination: { previous: '上一页', next: '下一页', - navigate: (page, pages) => `Page ${page} of ${pages}`, - page: (page) => `Page ${page}`, + navigate: (page, pages) => `第${page}页,共${pages}页`, + page: (page) => `第${page}页`, showing: '第', of: '到', - to: '页,共', - results: '页', + to: '条记录,共', + results: '条', }, loading: '玩命加载中...', noRecordsFound: '没找到匹配的项',