Download the PHP package abbadon1334/atk4-i18next-php without Composer
On this page you can find all versions of the php package abbadon1334/atk4-i18next-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package atk4-i18next-php
PHP Language library
Based on i18next http://i18next.com
Interpolate direct with ATK4 - Agile Toolkit Models https://www.agiletoolkit.org/
install with composer :
composer require abbadon1334/atk4-i18next-php
All documentation about the original library can be found here : http://i18next.com/
How to use :
Define if filename will be used has namespace :
Define primary and fallback languages (using names of the folder) :
Add additional language :
Translate :
Support I18Next
http://i18next.com
- [x] Read translations files from folder, every folder is a language code
- [x] JSON
- [ ] YAML
- [ ] PHP Array
- [ ] Write translations files to a folder, every folder is a language code
- [ ] JSON
- [ ] YAML
- [ ] PHP Array
- [x] Get a defined translation in primary language
- [x] If not found try in fallback language
- [x] If not found return original string
- [x] If not found try in fallback language
- [x] Namespaces
- [x] Get defined translation based on prioritized fallback namespaces
- [x] Context as {key}_{context}
- [x] Plurals
- [x] Singular as {key}
- [x] Plurals as {key}_plural
- [x] Multiple plurals as {key}_{int $counter}
- [x] Manage when $counter is bigger than max defined plurals
- [x] Nested interpolate plurals
- [x] Intervals
- [x] Interpolate
- [x] Replace {{key}} with defined $paramater value
- [x] If {{key}} has a point like {{key.index}} and $parameters[index] is an array or object will retrive the value
- [x] Replace {{key}} with defined $paramater value
- [x] Nesting
- [x] Basic
- [x] Plurals
- [ ] Formatting
- [x] Adding Helper for use method Translator::_ as global functions __
- [x] Adding Helper for use Translator as a global singleton instance
- [ ] Collect missing requested keys
- [ ] Adding Helper for search/collect calls to method Translator _ in code
- [x] Added direct translations using key as translation
Support ATK4 - Agile Toolkit Model
https://www.agiletoolkit.org
- [x] Interpolate with \atk4\data\Model
All versions of atk4-i18next-php with dependencies
PHP Build Version
Package Version
The package abbadon1334/atk4-i18next-php contains the following files
Loading the files please wait ....