]> git.immae.eu Git - perso/Immae/Projets/packagist/ludivine-ckeditor-component.git/blob - sources/samples/old/assets/uilanguages/languages.js
df6b2dcdf0e4f018bbf86c51cb15275ff341f2fa
[perso/Immae/Projets/packagist/ludivine-ckeditor-component.git] / sources / samples / old / assets / uilanguages / languages.js
1 /**
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6 /* exported CKEDITOR_LANGS */
7
8 var CKEDITOR_LANGS = ( function() {
9 var langs = {
10 af: 'Afrikaans',
11 ar: 'Arabic',
12 az: 'Azerbaijani',
13 bg: 'Bulgarian',
14 bn: 'Bengali/Bangla',
15 bs: 'Bosnian',
16 ca: 'Catalan',
17 cs: 'Czech',
18 cy: 'Welsh',
19 da: 'Danish',
20 de: 'German',
21 'de-ch': 'German (Switzerland)',
22 el: 'Greek',
23 en: 'English',
24 'en-au': 'English (Australia)',
25 'en-ca': 'English (Canadian)',
26 'en-gb': 'English (United Kingdom)',
27 eo: 'Esperanto',
28 es: 'Spanish',
29 et: 'Estonian',
30 eu: 'Basque',
31 fa: 'Persian',
32 fi: 'Finnish',
33 fo: 'Faroese',
34 fr: 'French',
35 'fr-ca': 'French (Canada)',
36 gl: 'Galician',
37 gu: 'Gujarati',
38 he: 'Hebrew',
39 hi: 'Hindi',
40 hr: 'Croatian',
41 hu: 'Hungarian',
42 id: 'Indonesian',
43 is: 'Icelandic',
44 it: 'Italian',
45 ja: 'Japanese',
46 ka: 'Georgian',
47 km: 'Khmer',
48 ko: 'Korean',
49 ku: 'Kurdish',
50 lt: 'Lithuanian',
51 lv: 'Latvian',
52 mk: 'Macedonian',
53 mn: 'Mongolian',
54 ms: 'Malay',
55 nb: 'Norwegian Bokmal',
56 nl: 'Dutch',
57 no: 'Norwegian',
58 oc: 'Occitan',
59 pl: 'Polish',
60 pt: 'Portuguese (Portugal)',
61 'pt-br': 'Portuguese (Brazil)',
62 ro: 'Romanian',
63 ru: 'Russian',
64 si: 'Sinhala',
65 sk: 'Slovak',
66 sq: 'Albanian',
67 sl: 'Slovenian',
68 sr: 'Serbian (Cyrillic)',
69 'sr-latn': 'Serbian (Latin)',
70 sv: 'Swedish',
71 th: 'Thai',
72 tr: 'Turkish',
73 tt: 'Tatar',
74 ug: 'Uighur',
75 uk: 'Ukrainian',
76 vi: 'Vietnamese',
77 zh: 'Chinese Traditional',
78 'zh-cn': 'Chinese Simplified'
79 };
80
81 var langsArray = [];
82
83 for ( var code in CKEDITOR.lang.languages ) {
84 langsArray.push( { code: code, name: ( langs[ code ] || code ) } );
85 }
86
87 langsArray.sort( function( a, b ) {
88 return ( a.name < b.name ) ? -1 : 1;
89 } );
90
91 return langsArray;
92 } )();