From 3146e5986cf4f8bf7d6f74e424c0953c61ba2f60 Mon Sep 17 00:00:00 2001 From: Tasos Georgakopoulos Date: Sun, 20 Jul 2025 12:06:31 +0300 Subject: [PATCH] feat(i18n): add Greek locale. Closes #21118 --- src/i18n/langEL.ts | 144 +++++++++++++++++++++++++++++++++++++++++++++ test/lang.html | 10 ++++ 2 files changed, 154 insertions(+) create mode 100644 src/i18n/langEL.ts diff --git a/src/i18n/langEL.ts b/src/i18n/langEL.ts new file mode 100644 index 0000000000..7c3c14f90f --- /dev/null +++ b/src/i18n/langEL.ts @@ -0,0 +1,144 @@ +/* + * 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: Greek. + */ + +export default { + time: { + month: [ + 'Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάιος', 'Ιούνιος', + 'Ιούλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος' + ], + monthAbbr: [ + 'Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιουν', + 'Ιουλ', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ' + ], + dayOfWeek: [ + 'Κυριακή', 'Δευτέρα', 'Τρίτη', 'Τετάρτη', 'Πέμπτη', 'Παρασκευή', 'Σάββατο' + ], + dayOfWeekAbbr: [ + 'Κυρ', 'Δευ', 'Τρι', 'Τετ', 'Πεμ', 'Παρ', 'Σαβ' + ] + }, + legend: { + selector: { + all: 'Όλα', + inverse: 'Αντιστροφή' + } + }, + toolbox: { + brush: { + title: { + rect: 'Επιλογή με πλαίσιο', + polygon: 'Επιλογή με λάσο', + lineX: 'Οριζόντια επιλογή', + lineY: 'Κατακόρυφη επιλογή', + keep: 'Διατήρηση επιλογών', + clear: 'Καθαρισμός επιλογών' + } + }, + dataView: { + title: 'Προβολή δεδομένων', + lang: ['Προβολή δεδομένων', 'Κλείσιμο', 'Ανανένωση'] + }, + dataZoom: { + title: { + zoom: 'Μεγέθυνση', + back: 'Επαναφορά μεγέθυνσης' + } + }, + magicType: { + title: { + line: 'Αλλαγή σε γραμμικό διάγραμμα', + bar: 'Αλλαγή σε ραβδογράφημα', + stack: 'Στοίβα', + tiled: 'Πλακίδια' + } + }, + restore: { + title: 'Επαναφορά' + }, + saveAsImage: { + title: 'Αποθήκευση ως εικόνα', + lang: ['Δεξί κλικ για αποθήκευση εικόνας'] + } + }, + series: { + typeNames: { + pie: 'Γράφημα πίτας', + bar: 'Ραβδογράφημα', + line: 'Γραμμικό διάγραμμα', + scatter: 'Διάγραμμα διασποράς', + effectScatter: 'Διάγραμμα διασποράς με κυματισμό', + radar: 'Διάγραμμα ραντάρ', + tree: 'Δενδρόγραμμα', + treemap: 'Διάγραμμα διαμερισματοποίησης', + boxplot: 'Γράφημα πλαισίου-απολήξεων', + candlestick: 'Διάγραμμα κηροπηγίων', + k: 'Διάγραμμα Κ', + heatmap: 'Θερμικός χάρτης', + map: 'Χάρτης', + parallel: 'Χάρτης παράλληλων συντεταγμένων', + lines: 'Γράφημα γραμμών', + graph: 'Γράφος σχέσεων', + sankey: 'Διάγραμμα Sankey', + funnel: 'Διάγραμμα χωνιού', + gauge: 'Διάγραμμα μετρητή', + pictorialBar: 'Εικονογραφικό ραβδογράφημα', + themeRiver: 'Γράφημα Ροής Κατηγοριών', + sunburst: 'Γράφημα Ιεραρχικών Δακτυλίων', + custom: 'Προσαρμοσμένο διάγραμμα', + chart: 'Διάγραμμα' + } + }, + aria: { + general: { + withTitle: 'Αυτό είναι ένα διάγραμμα με τίτλο "{title}"', + withoutTitle: 'Αυτό είναι ένα διάγραμμα' + }, + series: { + single: { + prefix: '', + withName: ' με τύπο {seriesType} και όνομα {seriesName}.', + withoutName: ' με τύπο {seriesType}.' + }, + multiple: { + prefix: '. Αποτελείται από {seriesCount} σειρές δεδομένων.', + withName: ' Η σειρά {seriesId} είναι {seriesType} με όνομα {seriesName}.', + withoutName: ' Η σειρά {seriesId} είναι {seriesType}.', + separator: { + middle: '', + end: '' + } + } + }, + data: { + allData: 'Τα δεδομένα είναι τα εξής:', + partialData: 'Τα πρώτα {displayCnt} στοιχεία είναι: ', + withName: 'τα δεδομένα για {name} είναι {value}', + withoutName: '{value}', + separator: { + middle: ', ', + end: '. ' + } + } + } +}; diff --git a/test/lang.html b/test/lang.html index 1178c5845f..995ebb60c5 100644 --- a/test/lang.html +++ b/test/lang.html @@ -66,6 +66,7 @@
+
+ +