All Projects β†’ yiisoft β†’ i18n

yiisoft / i18n

Licence: BSD-3-Clause license
Yii i18n

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to i18n

Domino-English-Translation
🌏 Let's translate Domino, a Japanese MIDI editor!
Stars: ✭ 29 (+45%)
Mutual labels:  i18n
vue-example
Vue.js example application (server-side rendering, router, vuex store, form validation, i18n & l10n)
Stars: ✭ 62 (+210%)
Mutual labels:  i18n
validator
Yii validator library
Stars: ✭ 47 (+135%)
Mutual labels:  yii3
mailer
Generic mailer
Stars: ✭ 16 (-20%)
Mutual labels:  yii3
awesome-translations
😎 Awesome lists about Internationalization & localization stuff. l10n, g11n, m17n, i18n. Translations! 🌎🌍
Stars: ✭ 54 (+170%)
Mutual labels:  i18n
react-polyglot-hooks
Hooks for using Polyglot.js with React.
Stars: ✭ 26 (+30%)
Mutual labels:  i18n
elm-format-number
✨Format numbers as pretty strings
Stars: ✭ 56 (+180%)
Mutual labels:  i18n
translate-go
https://babyblue94520.github.io/translate-go/dist/
Stars: ✭ 14 (-30%)
Mutual labels:  i18n
LorittaLocales
🌎 Loritta's localization files, bringing Loritta's cuteness to everyone around the world!
Stars: ✭ 21 (+5%)
Mutual labels:  i18n
i18n-testing
International data for testing and QA
Stars: ✭ 61 (+205%)
Mutual labels:  i18n
pH7-Internationalization
🎌 pH7CMS Internationalization (I18N) package πŸ™Š Get new languages for your pH7CMS website!
Stars: ✭ 17 (-15%)
Mutual labels:  i18n
grav-plugin-langswitcher
Grav LangSwitcher Plugin
Stars: ✭ 22 (+10%)
Mutual labels:  i18n
yii-cycle
Cycle ORM support for Yii
Stars: ✭ 30 (+50%)
Mutual labels:  yii3
markdown-i18n
i18n extension for Python Markdown
Stars: ✭ 13 (-35%)
Mutual labels:  i18n
JSON-i18n-Editor
Translate your i18n JSONs for your website or app with this tool
Stars: ✭ 29 (+45%)
Mutual labels:  i18n
odoo-th
Ready to use Odoo with OCA Thai localization modules
Stars: ✭ 29 (+45%)
Mutual labels:  i18n
crowdin-api-client-ruby
The Crowdin Ruby Client is used to interact with the Crowdin API v2 from Ruby
Stars: ✭ 50 (+150%)
Mutual labels:  i18n
next-multilingual
An opinionated end-to-end solution for Next.js applications that requires multiple languages.
Stars: ✭ 135 (+575%)
Mutual labels:  i18n
laravel-translate
Generate translation files for Laravel using Google Translate
Stars: ✭ 22 (+10%)
Mutual labels:  i18n
i18n-unused
The static analyze tool for finding, marking and removing unused and missing i18n translations in your JavaScript project
Stars: ✭ 76 (+280%)
Mutual labels:  i18n

Yii Internationalization Library


Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage

The package provides common internationalization utilities:

  • Locale stores locale information created from BCP 47 formatted string. Can parse locale string, modify locale parts, form locale string from parts, and derive fallback locale.

Requirements

  • PHP 7.4 or higher.

Installation

The package could be installed with composer:

composer install yiisoft/i18n --prefer-dist

General usage

$locale = new \Yiisoft\I18n\Locale('es-CL');
echo $locale->language(); // es
echo $locale->region(); // CL

$locale = $locale->withLanguage('en');
echo $locale->asString(); // en-CL

echo $locale
    ->fallbackLocale()
    ->asString(); // en

Testing

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:

./vendor/bin/roave-infection-static-analysis-plugin

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

License

The Yii Internationalization Library is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].