Skip to content

Commit

Permalink
feat: 增加几种多语言
Browse files Browse the repository at this point in the history
  • Loading branch information
shijia.sj committed Oct 31, 2024
1 parent f272516 commit b97a02f
Show file tree
Hide file tree
Showing 41 changed files with 701 additions and 511 deletions.
76 changes: 39 additions & 37 deletions compiled/alipay/demo/pages/ConfigProvider/es-ES.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,57 @@
const esES = {
// locales for all components
global: {
placeholder: '请选择西班牙语',
emptyText: '暂无数据西班牙语',
okText: '确定西班牙语',
cancelText: '取消西班牙语',
placeholder: 'Por favor, seleccione',
emptyText: 'No hay datos disponibles',
okText: 'Confirmar',
cancelText: 'Cancelar',
},
Calendar: {
weekdayNames: ['一', '二', '三', '四', '五', '六', '日'],
title: 'YYYY年MM月',
today: '今日',
start: '开始',
end: '结束',
startAndEnd: '开始/结束',
calendar: {
weekdayNames: [
'Lunes',
'Martes',
'Miércoles',
'Jueves',
'Viernes',
'Sábado',
'Domingo',
],
title: 'YYYY año MM mes',
today: 'Hoy',
start: 'Empezar',
end: 'Fin',
startAndEnd: 'Inicio/Fin',
},
// TODO 部分可以优化成global数据
RangePicker: {
// okText: '确定',
// cancelText: '取消',
// placeholder: '请选择',
precision: 'day',
splitCharacter: '-',
startPlaceholder: '未选择',
endPlaceholder: '未选择',
rangePicker: {
startPlaceholder: 'No ha comenzado la selección',
endPlaceholder: 'Selección no completada',
},
GuideTour: {
gotItText: '知道了',
nextStepText: '下一步',
prevStepText: '上一步',
jumpText: '跳过',
guideTour: {
gotItText: 'Entendido',
nextStepText: 'Siguiente paso',
prevStepText: 'Paso anterior',
jumpText: 'Saltar',
},
ImageUpload: {
uploadingText: '上传中',
uploadfailedText: '上传失败',
imageUpload: {
uploadingText: 'Subiendo',
uploadfailedText: 'Error al subir',
},
PageContainer: {
pageContainer: {
failed: {
title: '页面遇到一些小问题',
message: '待会来试试',
title: 'La página ha encontrado algunos pequeños problemas',
message: 'Lo probaré más tarde',
},
disconnected: {
title: '网络有点忙',
message: '动动手指帮忙修复',
title: 'La red está un poco ocupada',
message: 'Mueve tus dedos para ayudar a arreglarlo',
},
empty: {
title: '这里什么也没有',
message: '看看其它吧',
title: 'Aquí no hay nada',
message: 'Echa un vistazo a los demás',
},
busy: {
title: '前方拥堵',
message: '刷新试试',
title: 'Congestión por delante',
message: 'Intente refrescar',
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion compiled/alipay/src/ConfigProvider/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Antd-Mini 提供了 ConfigProvider 组件用于全局配置国际化文案。目
- 西班牙语(西班牙)| es-ES
- 意大利语(意大利)| it-IT
- 马来语(马来西亚)| ms-MY
- 印尼语 | id-ID
- 印尼语 | in-ID
- 泰语(泰国)| th-TH
- 葡萄牙语(巴西)| pt-BR
- 日语(日本)| ja-JP
Expand Down
70 changes: 39 additions & 31 deletions compiled/alipay/src/_locale/ar-SA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,57 @@ import type { Locale } from '.';
const arSA: Locale = {
// locales for all components
global: {
placeholder: '请选择阿拉伯语',
emptyText: '暂无数据',
okText: '确定',
cancelText: '取消',
placeholder: 'يرجى الاختيار',
emptyText: 'لا توجد بيانات حتى الآن',
okText: 'تأكيد',
cancelText: 'إلغاء',
},
Calendar: {
weekdayNames: ['一', '二', '三', '四', '五', '六', '日'],
title: 'YYYY年MM月',
today: '今日',
start: '开始',
end: '结束',
startAndEnd: '开始/结束',
calendar: {
weekdayNames: [
'الإثنين',
'الثلاثاء',
'الأربعاء',
'الخميس',
'الجمعة',
'السبت',
'الأحد',
],
title: 'YYYY سنة MM شهر',
today: 'اليوم',
start: 'ابدأ',
end: 'النهاية',
startAndEnd: 'البداية/النهاية',
},
RangePicker: {
startPlaceholder: '未选择',
endPlaceholder: '未选择',
rangePicker: {
startPlaceholder: 'لم يبدأ الاختيار',
endPlaceholder: 'لم يكتمل الاختيار',
},
GuideTour: {
gotItText: '知道了',
nextStepText: '下一步',
prevStepText: '上一步',
jumpText: '跳过',
guideTour: {
gotItText: 'فهمت ذلك',
nextStepText: 'الخطوة التالية',
prevStepText: 'الخطوة السابقة',
jumpText: 'تخطي',
},
ImageUpload: {
uploadingText: '上传中',
uploadfailedText: '上传失败',
imageUpload: {
uploadingText: 'جارٍ التحميل',
uploadfailedText: 'فشل في التحميل',
},
PageContainer: {
pageContainer: {
failed: {
title: '页面遇到一些小问题',
message: '待会来试试',
title: 'تواجه الصفحة بعض المشكلات البسيطة',
message: 'سأحاول ذلك لاحقًا',
},
disconnected: {
title: '网络有点忙',
message: '动动手指帮忙修复',
title: 'الشبكة مشغولة بعض الشيء',
message: 'حرّك إصبعك للمساعدة في الإصلاح',
},
empty: {
title: '这里什么也没有',
message: '看看其它吧',
title: 'لا يوجد شيء هنا',
message: 'انظر إلى أشياء أخرى',
},
busy: {
title: '前方拥堵',
message: '刷新试试',
title: 'الازدحام الأمامي',
message: 'جرّب الانتعاش.',
},
},
};
Expand Down
70 changes: 39 additions & 31 deletions compiled/alipay/src/_locale/de-DE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,57 @@ import type { Locale } from '.';
const deDE: Locale = {
// locales for all components
global: {
placeholder: '请选择德语',
emptyText: '暂无数据',
okText: '确定',
cancelText: '取消',
placeholder: 'Bitte wählen Sie',
emptyText: 'Keine Daten verfügbar',
okText: 'Bestimmt',
cancelText: 'Abbrechen',
},
Calendar: {
weekdayNames: ['一', '二', '三', '四', '五', '六', '日'],
title: 'YYYY年MM月',
today: '今日',
start: '开始',
end: '结束',
startAndEnd: '开始/结束',
calendar: {
weekdayNames: [
'Montag',
'Dienstag',
'Mittwoch',
'Donnerstag',
'Freitag',
'Samstag',
'Sonntag',
],
title: 'YYYY Jahr MM Monat',
today: 'Heute',
start: 'Start',
end: 'Ende',
startAndEnd: 'Anfang/Ende',
},
RangePicker: {
startPlaceholder: '未选择',
endPlaceholder: '未选择',
rangePicker: {
startPlaceholder: 'Die Auswahl hat noch nicht begonnen',
endPlaceholder: 'Unvollständige Auswahl',
},
GuideTour: {
gotItText: '知道了',
nextStepText: '下一步',
prevStepText: '上一步',
jumpText: '跳过',
guideTour: {
gotItText: 'Ich habe es verstanden',
nextStepText: 'Nächster Schritt',
prevStepText: 'Vorheriger Schritt',
jumpText: 'Überspringen',
},
ImageUpload: {
uploadingText: '上传中',
uploadfailedText: '上传失败',
imageUpload: {
uploadingText: 'Hochladen',
uploadfailedText: 'Der Upload ist fehlgeschlagen',
},
PageContainer: {
pageContainer: {
failed: {
title: '页面遇到一些小问题',
message: '待会来试试',
title: 'Auf der Seite treten einige kleinere Probleme auf',
message: 'Ich werde es später ausprobieren',
},
disconnected: {
title: '网络有点忙',
message: '动动手指帮忙修复',
title: 'Das Netzwerk ist etwas beschäftigt',
message: 'Bewegen Sie bitte Ihre Finger, um zu helfen, es zu reparieren.',
},
empty: {
title: '这里什么也没有',
message: '看看其它吧',
title: 'Hier gibt es nichts.',
message: 'Schauen Sie sich auch die anderen an.',
},
busy: {
title: '前方拥堵',
message: '刷新试试',
title: 'Stau voraus',
message: 'Versuchen Sie es erneut.',
},
},
};
Expand Down
70 changes: 39 additions & 31 deletions compiled/alipay/src/_locale/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,57 @@ import type { Locale } from '.';
const enUS: Locale = {
// locales for all components
global: {
placeholder: '请选择英语',
emptyText: '暂无数据',
okText: '确定',
cancelText: '取消',
placeholder: 'Please select',
emptyText: 'No data available',
okText: 'Ok',
cancelText: 'Cancel',
},
Calendar: {
weekdayNames: ['一', '二', '三', '四', '五', '六', '日'],
title: 'YYYY年MM月',
today: '今日',
start: '开始',
end: '结束',
startAndEnd: '开始/结束',
calendar: {
weekdayNames: [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
],
title: 'YYYY year MM month',
today: 'Today',
start: 'Start',
end: 'End',
startAndEnd: 'Start/End',
},
RangePicker: {
startPlaceholder: '未选择',
endPlaceholder: '未选择',
rangePicker: {
startPlaceholder: 'No selection started',
endPlaceholder: 'Incomplete selection',
},
GuideTour: {
gotItText: '知道了',
nextStepText: '下一步',
prevStepText: '上一步',
jumpText: '跳过',
guideTour: {
gotItText: 'Got it',
nextStepText: 'Next step',
prevStepText: 'Previous step',
jumpText: 'Skip',
},
ImageUpload: {
uploadingText: '上传中',
uploadfailedText: '上传失败',
imageUpload: {
uploadingText: 'Uploading',
uploadfailedText: 'Upload failed',
},
PageContainer: {
pageContainer: {
failed: {
title: '页面遇到一些小问题',
message: '待会来试试',
title: 'The page is experiencing some minor issues',
message: "I'll try it later",
},
disconnected: {
title: '网络有点忙',
message: '动动手指帮忙修复',
title: 'The network is a bit busy',
message: 'Move your fingers to help repair',
},
empty: {
title: '这里什么也没有',
message: '看看其它吧',
title: "There's nothing here",
message: 'Check out the others',
},
busy: {
title: '前方拥堵',
message: '刷新试试',
title: 'Congestion ahead',
message: 'Try refreshing',
},
},
};
Expand Down
Loading

0 comments on commit b97a02f

Please sign in to comment.