Category: Internationalization

How to Implement Internationalization (i18n) in JavaScript

So, you’re a developer working on the next big thing. Your customers love your product and it’s getting rave reviews on all the social networks. Even better, the CEO of the company has just secured $10,000,000 in funding to expand into new markets. But before you can go global, the product must be updated t...

Localizing Dates, Currency, and Numbers with Php-Intl

The first part of this series was an introduction of the PHP Intl extension and of how to localize your application’s messages. In this part, we’re going to learn about localizing numbers, dates, calendars, and similar complex data. Let’s get started! Localizing Decimals This may sound odd, but one o...

Localization Demystified: Php-Intl for Everyone

Most applications perform locale aware operations like working with texts, dates, timezones, etc. The PHP Intl extension provides a good API for accessing the widely known ICU library’s functions. [author_more] Installation The extension is installed by default on PHP 5.3 and above. You can look for it by runnin...

Easy Multi-Language Twig Apps with Gettext

There are many approaches for adding new languages to your application’s UI. Though some userland solutions like symfony/translation are arguably simpler to use, they’re slower than the good old native gettext by an order of several magnitudes. In this tutorial, we’ll modify an English-only application to use get...