@@ -47,6 +47,19 @@ echo $iso->nativeByCode1('en'); // English
4747echo $iso->nativeByCode1('id'); // Bahasa Indonesia
4848echo $iso->nativeByCode1('jv'); // basa Jawa
4949
50+ // Get native language name from ISO-639-1 code with capitalized
51+ echo $iso->nativeByCode1('en', true); // English
52+ echo $iso->nativeByCode1('id', true); // Bahasa Indonesia
53+ echo $iso->nativeByCode1('jv', true); // Basa Jawa
54+ echo $iso->nativeByCode1('hi', true); // हिन्दी, हिंदी
55+ echo $iso->nativeByCode1('th', true); // ไทย
56+ echo $iso->nativeByCode1('ko', true); // 한국어
57+ echo $iso->nativeByCode1('ja', true); // 日本語 (にほんご)
58+ echo $iso->nativeByCode1('zh', true); // '中文 (Zhōngwén), 汉语, 漢語
59+ echo $iso->nativeByCode1('ru', true); // Русский
60+ echo $iso->nativeByCode1('ar', true); // االعربية
61+ echo $iso->nativeByCode1('vi', true); // Việt Nam
62+
5063// Get language name from ISO-639-2t code
5164echo $iso->languageByCode2t('eng'); // English
5265echo $iso->languageByCode2t('ind'); // Indonesian
@@ -57,6 +70,19 @@ echo $iso->nativeByCode2t('eng'); // English
5770echo $iso->nativeByCode2t('ind'); // Bahasa Indonesia
5871echo $iso->nativeByCode2t('jav'); // basa Jawa
5972
73+ // Get native language name from ISO-639-2t code with capitalized
74+ echo $iso->nativeByCode2t('eng', true); // English
75+ echo $iso->nativeByCode2t('ind', true); // Bahasa Indonesia
76+ echo $iso->nativeByCode2t('jav', true); // Basa Jawa
77+ echo $iso->nativeByCode2t('hin', true); // हिन्दी, हिंदी
78+ echo $iso->nativeByCode2t('tha', true); // ไทย
79+ echo $iso->nativeByCode2t('kor', true); // 한국어
80+ echo $iso->nativeByCode2t('jpn', true); // 日本語 (にほんご)
81+ echo $iso->nativeByCode2t('zho', true); // '中文 (Zhōngwén), 汉语, 漢語
82+ echo $iso->nativeByCode2t('rus', true); // Русский
83+ echo $iso->nativeByCode2t('ara', true); // االعربية
84+ echo $iso->nativeByCode2t('vie', true); // Việt Nam
85+
6086// Get language name from ISO-639-2b code
6187echo $iso->languageByCode2b('eng'); // English
6288echo $iso->languageByCode2b('ind'); // Indonesian
@@ -67,6 +93,19 @@ echo $iso->nativeByCode2b('eng'); // English
6793echo $iso->nativeByCode2b('ind'); // Bahasa Indonesia
6894echo $iso->nativeByCode2b('jav'); // basa Jawa
6995
96+ // Get native language name from ISO-639-2b code with capitalized
97+ echo $iso->nativeByCode2b('eng', true); // English
98+ echo $iso->nativeByCode2b('ind', true); // Bahasa Indonesia
99+ echo $iso->nativeByCode2b('jav', true); // Basa Jawa
100+ echo $iso->nativeByCode2b('hin', true); // हिन्दी, हिंदी
101+ echo $iso->nativeByCode2b('tha', true); // ไทย
102+ echo $iso->nativeByCode2b('kor', true); // 한국어
103+ echo $iso->nativeByCode2b('jpn', true); // 日本語 (にほんご)
104+ echo $iso->nativeByCode2b('chi', true); // '中文 (Zhōngwén), 汉语, 漢語
105+ echo $iso->nativeByCode2b('rus', true); // Русский
106+ echo $iso->nativeByCode2b('ara', true); // االعربية
107+ echo $iso->nativeByCode2b('vie', true); // Việt Nam
108+
70109// Get language name from ISO-639-3 code
71110echo $iso->languageByCode3('eng'); // English
72111echo $iso->languageByCode3('ind'); // Indonesian
@@ -77,6 +116,19 @@ echo $iso->nativeByCode3('eng'); // English
77116echo $iso->nativeByCode3('ind'); // Bahasa Indonesia
78117echo $iso->nativeByCode3('jav'); // basa Jawa
79118
119+ // Get native language name from ISO-639-3 code with capitalized
120+ echo $iso->nativeByCode3('eng', true); // English
121+ echo $iso->nativeByCode3('ind', true); // Bahasa Indonesia
122+ echo $iso->nativeByCode3('jav', true); // Basa Jawa
123+ echo $iso->nativeByCode3('hin', true); // हिन्दी, हिंदी
124+ echo $iso->nativeByCode3('tha', true); // ไทย
125+ echo $iso->nativeByCode3('kor', true); // 한국어
126+ echo $iso->nativeByCode3('jpn', true); // 日本語 (にほんご)
127+ echo $iso->nativeByCode3('zho', true); // '中文 (Zhōngwén), 汉语, 漢語
128+ echo $iso->nativeByCode3('rus', true); // Русский
129+ echo $iso->nativeByCode3('ara', true); // االعربية
130+ echo $iso->nativeByCode3('vie', true); // Việt Nam
131+
80132// Get language array from ISO-639-2b code
81133echo $iso->getLanguageByIsoCode2b('eng'); // ['en', 'eng', 'eng', 'eng', 'English', 'English']
82134echo $iso->getLanguageByIsoCode2b('ind'); // ['id', 'ind', 'ind', 'ind', 'Indonesian', 'Bahasa Indonesia']
0 commit comments