Skip to content

Commit

Permalink
Merge pull request #3 from Laravel-Lang/1.x
Browse files Browse the repository at this point in the history
Added several localization codes supported by Google Translate
  • Loading branch information
andrey-helldar authored Dec 22, 2023
2 parents ed05af4 + a98798e commit 296a89f
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions src/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,83 +19,146 @@ enum Locale: string

case Afrikaans = 'af';
case Albanian = 'sq';
case Amharic = 'am';
case Arabic = 'ar';
case Armenian = 'hy';
case Assamese = 'as';
case Aymara = 'ay';
case Azerbaijani = 'az';
case Bambara = 'bm';
case Basque = 'eu';
case Belarusian = 'be';
case Bengali = 'bn';
case Bhojpuri = 'bho';
case Bosnian = 'bs';
case Bulgarian = 'bg';
case Catalan = 'ca';
case Cebuano = 'ceb';
case CentralKhmer = 'km';
case Chinese = 'zh_CN';
case ChineseHongKong = 'zh_HK';
case ChineseT = 'zh_TW';
case Corsican = 'co';
case Croatian = 'hr';
case Czech = 'cs';
case Danish = 'da';
case Dhivehi = 'dv';
case Dogri = 'doi';
case Dutch = 'nl';
case English = 'en';
case Esperanto = 'eo';
case Estonian = 'et';
case Ewe = 'ee';
case Finnish = 'fi';
case French = 'fr';
case Frisian = 'fy';
case Galician = 'gl';
case Georgian = 'ka';
case German = 'de';
case GermanSwitzerland = 'de_CH';
case Greek = 'el';
case Guarani = 'gn';
case Gujarati = 'gu';
case Haitian = 'ht';
case Hausa = 'ha';
case Hawaiian = 'haw';
case Hebrew = 'he';
case Hindi = 'hi';
case Hmong = 'hmn';
case Hungarian = 'hu';
case Icelandic = 'is';
case Igbo = 'ig';
case Ilocano = 'ilo';
case Indonesian = 'id';
case Irish = 'ga';
case Italian = 'it';
case Japanese = 'ja';
case Javanese = 'jw';
case Kannada = 'kn';
case Kazakh = 'kk';
case Kinyarwanda = 'rw';
case Konkani = 'gom';
case Korean = 'ko';
case Krio = 'kri';
case Kurdish = 'ckb';
case Kyrgyz = 'ky';
case Lao = 'lo';
case Latin = 'la';
case Latvian = 'lv';
case Lingala = 'ln';
case Lithuanian = 'lt';
case Luganda = 'lg';
case Luxembourgish = 'lb';
case Macedonian = 'mk';
case Maithili = 'mai';
case Malagasy = 'mg';
case Malay = 'ms';
case Malayalam = 'ml';
case Maltese = 'mt';
case Maori = 'mi';
case Marathi = 'mr';
case Meiteilon = 'mni_Mtei';
case Mizo = 'lus';
case Mongolian = 'mn';
case Myanmar = 'my';
case Nepali = 'ne';
case NorwegianBokmal = 'nb';
case NorwegianNynorsk = 'nn';
case Nyanja = 'ny';
case Occitan = 'oc';
case Odia = 'or';
case Oromo = 'om';
case Pashto = 'ps';
case Persian = 'fa';
case Pilipino = 'fil';
case Polish = 'pl';
case Portuguese = 'pt';
case PortugueseBrazil = 'pt_BR';
case Punjabi = 'pa';
case Quechua = 'qu';
case Romanian = 'ro';
case Russian = 'ru';
case Samoan = 'sm';
case Sanskrit = 'sa';
case Sardinian = 'sc';
case Scots = 'gd';
case Sepedi = 'nso';
case SerbianCyrillic = 'sr_Cyrl';
case SerbianLatin = 'sr_Latn';
case SerbianMontenegrin = 'sr_Latn_ME';
case Sesotho = 'st';
case Shona = 'sn';
case Sindhi = 'sd';
case Sinhala = 'si';
case Slovak = 'sk';
case Slovenian = 'sl';
case Somali = 'so';
case Spanish = 'es';
case Sundanese = 'su';
case Swahili = 'sw';
case Swedish = 'sv';
case Tagalog = 'tl';
case Tajik = 'tg';
case Tamil = 'ta';
case Tatar = 'tt';
case Telugu = 'te';
case Thai = 'th';
case Tigrinya = 'ti';
case Tsonga = 'ts';
case Turkish = 'tr';
case Turkmen = 'tk';
case Twi = 'ak';
case Uighur = 'ug';
case Ukrainian = 'uk';
case Urdu = 'ur';
case UzbekCyrillic = 'uz_Cyrl';
case UzbekLatin = 'uz_Latn';
case Vietnamese = 'vi';
case Welsh = 'cy';
case Xhosa = 'xh';
case Yiddish = 'yi';
case Yoruba = 'yo';
case Zulu = 'zu';

/**
* Get an associative array of [case value => case value].
Expand Down

0 comments on commit 296a89f

Please sign in to comment.