Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 494 Bytes

language.rst

File metadata and controls

17 lines (12 loc) · 494 Bytes

Punic\Language class

The language class helps you to convert a locale code into a language name. Want to know what it_IT is called in American English? Use this class to show all the languages in the right way.

use Punic\Language;

echo Language::getName('it_IT', 'en_US');
// Output: Italian (Italy)

echo Language::getName('de_CH', 'de_DE');
// Output: Schweizer Hochdeutsch (Schweiz)