From 6b9b68f667e221d39ffe7531cb385ddaf45329b0 Mon Sep 17 00:00:00 2001 From: OthmanAliModaes <148161949+OthmanAliModaes@users.noreply.github.com> Date: Tue, 17 Oct 2023 02:32:58 +0300 Subject: [PATCH 1/2] Create langAR.ts Adding Arabic language, in progress. --- src/i18n/langAR.ts | 142 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/i18n/langAR.ts diff --git a/src/i18n/langAR.ts b/src/i18n/langAR.ts new file mode 100644 index 0000000000..50fab7115a --- /dev/null +++ b/src/i18n/langAR.ts @@ -0,0 +1,142 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * Language: Arabic. + */ + +export default { + time: { + month: [ + 'يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', + 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر' + ], + monthAbbr: [ + 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' + ], + dayOfWeek: [ + 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' + ], + dayOfWeekAbbr: [ + 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' + ] + }, + legend: { + selector: { + all: 'تحديد الكل', + inverse: 'عكس التحديد' + } + }, + toolbox: { + brush: { + title: { + rect: 'Box Select', + polygon: 'Lasso Select', + lineX: 'Horizontally Select', + lineY: 'Vertically Select', + keep: 'Keep Selections', + clear: 'Clear Selections' + } + }, + dataView: { + title: 'Data View', + lang: ['Data View', 'Close', 'Refresh'] + }, + dataZoom: { + title: { + zoom: 'Zoom', + back: 'Zoom Reset' + } + }, + magicType: { + title: { + line: 'Switch to Line Chart', + bar: 'Switch to Bar Chart', + stack: 'Stack', + tiled: 'Tile' + } + }, + restore: { + title: 'Restore' + }, + saveAsImage: { + title: 'Save as Image', + lang: ['Right Click to Save Image'] + } + }, + series: { + typeNames: { + pie: 'Pie chart', + bar: 'Bar chart', + line: 'Line chart', + scatter: 'Scatter plot', + effectScatter: 'Ripple scatter plot', + radar: 'Radar chart', + tree: 'Tree', + treemap: 'Treemap', + boxplot: 'Boxplot', + candlestick: 'Candlestick', + k: 'K line chart', + heatmap: 'Heat map', + map: 'Map', + parallel: 'Parallel coordinate map', + lines: 'Line graph', + graph: 'Relationship graph', + sankey: 'Sankey diagram', + funnel: 'Funnel chart', + gauge: 'Gauge', + pictorialBar: 'Pictorial bar', + themeRiver: 'Theme River Map', + sunburst: 'Sunburst' + } + }, + aria: { + general: { + withTitle: 'This is a chart about "{title}"', + withoutTitle: 'This is a chart' + }, + series: { + single: { + prefix: '', + withName: ' with type {seriesType} named {seriesName}.', + withoutName: ' with type {seriesType}.' + }, + multiple: { + prefix: '. It consists of {seriesCount} series count.', + withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.', + withoutName: ' The {seriesId} series is a {seriesType}.', + separator: { + middle: '', + end: '' + } + } + }, + data: { + allData: 'The data is as follows: ', + partialData: 'The first {displayCnt} items are: ', + withName: 'the data for {name} is {value}', + withoutName: '{value}', + separator: { + middle: ', ', + end: '. ' + } + } + } +}; From 2c56c449969d5371117a52c1c823608a5e1efe7b Mon Sep 17 00:00:00 2001 From: OthmanAliModaes <148161949+OthmanAliModaes@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:40:20 +0300 Subject: [PATCH 2/2] Update langAR.ts, Translation completed. Arabic Translation completed. --- src/i18n/langAR.ts | 115 +++++++++++++++++++++++---------------------- 1 file changed, 59 insertions(+), 56 deletions(-) diff --git a/src/i18n/langAR.ts b/src/i18n/langAR.ts index 50fab7115a..ddb05ba315 100644 --- a/src/i18n/langAR.ts +++ b/src/i18n/langAR.ts @@ -22,20 +22,21 @@ */ export default { + time: { month: [ 'يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر' ], monthAbbr: [ - 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' + 'يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', + 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر' ], dayOfWeek: [ - 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' + 'الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت' ], dayOfWeekAbbr: [ - 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' + 'الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت' ] }, legend: { @@ -47,96 +48,98 @@ export default { toolbox: { brush: { title: { - rect: 'Box Select', - polygon: 'Lasso Select', - lineX: 'Horizontally Select', - lineY: 'Vertically Select', - keep: 'Keep Selections', - clear: 'Clear Selections' + rect: 'تحديد صندوقي', + polygon: 'تحديد حلقي', + lineX: 'تحديد أفقي', + lineY: 'تحديد عمودي', + keep: 'الاحتفاظ بالمحدد', + clear: 'إلغاء التحديد' } }, dataView: { - title: 'Data View', - lang: ['Data View', 'Close', 'Refresh'] + title: 'عرض البيانات', + lang: ['عرض البيانات', 'إغلاق', 'تحديث'] }, dataZoom: { title: { - zoom: 'Zoom', - back: 'Zoom Reset' + zoom: 'تكبير', + back: 'استعادة التكبير' } }, magicType: { title: { - line: 'Switch to Line Chart', - bar: 'Switch to Bar Chart', - stack: 'Stack', - tiled: 'Tile' + line: 'خطوط', + bar: 'أشرطة', + stack: 'تكديس', + tiled: 'مربعات' } }, restore: { - title: 'Restore' + title: 'استعادة' }, saveAsImage: { - title: 'Save as Image', - lang: ['Right Click to Save Image'] + title: 'حفظ كملف صورة', + lang: ['للحفظ كصورة انقر بالزر الأيمن'] } }, series: { typeNames: { - pie: 'Pie chart', - bar: 'Bar chart', - line: 'Line chart', - scatter: 'Scatter plot', - effectScatter: 'Ripple scatter plot', - radar: 'Radar chart', - tree: 'Tree', - treemap: 'Treemap', - boxplot: 'Boxplot', - candlestick: 'Candlestick', - k: 'K line chart', - heatmap: 'Heat map', - map: 'Map', - parallel: 'Parallel coordinate map', - lines: 'Line graph', - graph: 'Relationship graph', - sankey: 'Sankey diagram', - funnel: 'Funnel chart', - gauge: 'Gauge', - pictorialBar: 'Pictorial bar', - themeRiver: 'Theme River Map', - sunburst: 'Sunburst' + pie: 'رسم بياني دائري', + bar: 'رسم بياني شريطي', + line: 'رسم بياني خطي', + scatter: 'نقاط مبعثرة', + effectScatter: 'نقاط مبعثرة متموجة', + radar: 'رسم بياني راداري', + tree: 'شجرة', + treemap: 'مخطط شجري', + boxplot: 'مخطط صندوقي', + candlestick: 'مخطط شمعدان', + k: 'رسم بياني خطي من النوع K', + heatmap: 'خريطة حرارية', + map: 'خريطة', + parallel: 'خريطة الإحداثيات المتناظرة', + lines: 'خطوط', + graph: 'مخطط علائقي', + sankey: 'مخطط ثعباني', + funnel: 'مخطط هرمي', + gauge: 'مقياس', + pictorialBar: 'مخطط مصوّر', + themeRiver: 'نمط خريطة النهر', + sunburst: 'مخطط شمسي' } }, aria: { general: { - withTitle: 'This is a chart about "{title}"', - withoutTitle: 'This is a chart' + withTitle: 'هذا رسم بياني حول "{title}".', + withoutTitle: 'هذا رسم بياني.' }, series: { single: { prefix: '', - withName: ' with type {seriesType} named {seriesName}.', - withoutName: ' with type {seriesType}.' + withName: ' من النوع {seriesType} اسمه {seriesName}.', + withoutName: ' من النوع {seriesType}.' }, multiple: { - prefix: '. It consists of {seriesCount} series count.', - withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.', - withoutName: ' The {seriesId} series is a {seriesType}.', + prefix: '. يتكون من {seriesCount} سلسلة.', + withName: ' الـ {seriesId} هي سلسلة من النوع {seriesType} تستعرض {seriesName}.', + withoutName: ' الـ {seriesId} هي سلسلة من النوع {seriesType}.', separator: { - middle: '', - end: '' + middle: '، ', + end: '. ' } } }, data: { - allData: 'The data is as follows: ', - partialData: 'The first {displayCnt} items are: ', - withName: 'the data for {name} is {value}', + allData: 'البيانات هي كالتالي: ', + partialData: 'أول {displayCnt} عناصر هي: ', + withName: 'قيمة العنصر {name} هي {value}', withoutName: '{value}', separator: { - middle: ', ', + middle: '، ', end: '. ' } } } + + };