languages.js 1.8 KB

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