reliv / rcm-i18n
Stores translations in DB for ZF2 i18n
Installs: 1 638
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 4
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: 5.*
- squizlabs/php_codesniffer: 3.*
Suggests
- bower-asset/angular-translate: >=2.7.2
This package is auto-updated.
Last update: 2024-10-26 01:31:53 UTC
README
Rcm Translate API
Rcm Translate API - HTTP API for translations
Calling the API:
https://example.com/api/rcm-translate-api/MY-TRANSLATION-NAMESPACE?1=term1&key2=term2
The query param field is an arbitrary key (usually the same as the term) The query param value is the term (string) to translate
I.E.
?queryField=queryValue equates to: someValue=translationString
Result:
{
"term1": "term1 translation",
"term2": "term2 translation"
}
ToDo
- Complete the Zend Expressive part
- Need to register translator plugins with ZF2 application