Laravel Lang Help

Locale List

As enum

use LaravelLang\LocaleList\Locale; return Locale::Bengali;

Result:

LaravelLang\LocaleList\Locale { +name: "Bengali" +value: "bn" }

List of codes

use LaravelLang\LocaleList\Locale; return Locale::values();

Result:

[ 0 => 'af', 1 => 'sq', 2 => 'am', 3 => 'ar', 4 => 'hy', 5 => 'as', 6 => 'az', 7 => 'bm', 8 => 'eu', 9 => 'be', 10 => 'bn', 11 => 'bho', 12 => 'bs', 13 => 'bg', 14 => 'ca', 15 => 'ceb', 16 => 'km', 17 => 'zh_CN', 18 => 'zh_HK', 19 => 'zh_TW', 20 => 'hr', 21 => 'cs', 22 => 'da', 23 => 'doi', 24 => 'nl', 25 => 'en', 26 => 'eo', 27 => 'et', 28 => 'ee', 29 => 'fi', 30 => 'fr', 31 => 'fy', 32 => 'gl', 33 => 'ka', 34 => 'de', 35 => 'de_CH', 36 => 'el', 37 => 'gu', 38 => 'ha', 39 => 'haw', 40 => 'he', 41 => 'hi', 42 => 'hu', 43 => 'is', 44 => 'ig', 45 => 'id', 46 => 'ga', 47 => 'it', 48 => 'ja', 49 => 'kn', 50 => 'kk', 51 => 'rw', 52 => 'ko', 53 => 'ku', 54 => 'ckb', 55 => 'ky', 56 => 'lo', 57 => 'lv', 58 => 'ln', 59 => 'lt', 60 => 'lg', 61 => 'lb', 62 => 'mk', 63 => 'mai', 64 => 'mg', 65 => 'ms', 66 => 'ml', 67 => 'mt', 68 => 'mi', 69 => 'mr', 70 => 'mni_Mtei', 71 => 'mn', 72 => 'my', 73 => 'ne', 74 => 'nb', 75 => 'nn', 76 => 'oc', 77 => 'or', 78 => 'om', 79 => 'ps', 80 => 'fa', 81 => 'fil', 82 => 'pl', 83 => 'pt', 84 => 'pt_BR', 85 => 'pa', 86 => 'qu', 87 => 'ro', 88 => 'ru', 89 => 'sa', 90 => 'sc', 91 => 'gd', 92 => 'sr_Cyrl', 93 => 'sr_Latn', 94 => 'sr_Latn_ME', 95 => 'sn', 96 => 'sd', 97 => 'si', 98 => 'sk', 99 => 'sl', 100 => 'so', 101 => 'es', 102 => 'su', 103 => 'sw', 104 => 'sv', 105 => 'tl', 106 => 'tg', 107 => 'ta', 108 => 'tt', 109 => 'te', 110 => 'th', 111 => 'ti', 112 => 'tr', 113 => 'tk', 114 => 'ak', 115 => 'ug', 116 => 'uk', 117 => 'ur', 118 => 'uz_Cyrl', 119 => 'uz_Latn', 120 => 'vi', 121 => 'cy', 122 => 'xh', 123 => 'yi', 124 => 'yo', 125 => 'zu', ]

List of titles

use LaravelLang\LocaleList\Locale; return Locale::names();

Result:

[ 0 => 'Afrikaans', 1 => 'Albanian', 2 => 'Amharic', 3 => 'Arabic', 4 => 'Armenian', 5 => 'Assamese', 6 => 'Azerbaijani', 7 => 'Bambara', 8 => 'Basque', 9 => 'Belarusian', 10 => 'Bengali', 11 => 'Bhojpuri', 12 => 'Bosnian', 13 => 'Bulgarian', 14 => 'Catalan', 15 => 'Cebuano', 16 => 'CentralKhmer', 17 => 'Chinese', 18 => 'ChineseHongKong', 19 => 'ChineseT', 20 => 'Croatian', 21 => 'Czech', 22 => 'Danish', 23 => 'Dogri', 24 => 'Dutch', 25 => 'English', 26 => 'Esperanto', 27 => 'Estonian', 28 => 'Ewe', 29 => 'Finnish', 30 => 'French', 31 => 'Frisian', 32 => 'Galician', 33 => 'Georgian', 34 => 'German', 35 => 'GermanSwitzerland', 36 => 'Greek', 37 => 'Gujarati', 38 => 'Hausa', 39 => 'Hawaiian', 40 => 'Hebrew', 41 => 'Hindi', 42 => 'Hungarian', 43 => 'Icelandic', 44 => 'Igbo', 45 => 'Indonesian', 46 => 'Irish', 47 => 'Italian', 48 => 'Japanese', 49 => 'Kannada', 50 => 'Kazakh', 51 => 'Kinyarwanda', 52 => 'Korean', 53 => 'Kurdish', 54 => 'KurdishSorani', 55 => 'Kyrgyz', 56 => 'Lao', 57 => 'Latvian', 58 => 'Lingala', 59 => 'Lithuanian', 60 => 'Luganda', 61 => 'Luxembourgish', 62 => 'Macedonian', 63 => 'Maithili', 64 => 'Malagasy', 65 => 'Malay', 66 => 'Malayalam', 67 => 'Maltese', 68 => 'Maori', 69 => 'Marathi', 70 => 'MeiteilonManipuri', 71 => 'Mongolian', 72 => 'MyanmarBurmese', 73 => 'Nepali', 74 => 'NorwegianBokmal', 75 => 'NorwegianNynorsk', 76 => 'Occitan', 77 => 'OdiaOriya', 78 => 'Oromo', 79 => 'Pashto', 80 => 'Persian', 81 => 'Pilipino', 82 => 'Polish', 83 => 'Portuguese', 84 => 'PortugueseBrazil', 85 => 'Punjabi', 86 => 'Quechua', 87 => 'Romanian', 88 => 'Russian', 89 => 'Sanskrit', 90 => 'Sardinian', 91 => 'ScotsGaelic', 92 => 'SerbianCyrillic', 93 => 'SerbianLatin', 94 => 'SerbianMontenegrin', 95 => 'Shona', 96 => 'Sindhi', 97 => 'Sinhala', 98 => 'Slovak', 99 => 'Slovenian', 100 => 'Somali', 101 => 'Spanish', 102 => 'Sundanese', 103 => 'Swahili', 104 => 'Swedish', 105 => 'Tagalog', 106 => 'Tajik', 107 => 'Tamil', 108 => 'Tatar', 109 => 'Telugu', 110 => 'Thai', 111 => 'Tigrinya', 112 => 'Turkish', 113 => 'Turkmen', 114 => 'TwiAkan', 115 => 'Uighur', 116 => 'Ukrainian', 117 => 'Urdu', 118 => 'UzbekCyrillic', 119 => 'UzbekLatin', 120 => 'Vietnamese', 121 => 'Welsh', 122 => 'Xhosa', 123 => 'Yiddish', 124 => 'Yoruba', 125 => 'Zulu', ]

List of codes with names

use LaravelLang\LocaleList\Locale; return Locale::options();

Result:

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