Download the PHP package syntaxseed/translator without Composer
On this page you can find all versions of the php package syntaxseed/translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download syntaxseed/translator
More information about syntaxseed/translator
Files in syntaxseed/translator
Download syntaxseed/translator
More information about syntaxseed/translator
Files in syntaxseed/translator
Vendor syntaxseed
Package translator
Short Description Translate strings in your application to multiple languages loaded from JSON files.
License MIT
Package translator
Short Description Translate strings in your application to multiple languages loaded from JSON files.
License MIT
Please rate this library. Is it a good library?
Informations about the package translator
JSON Translator
Load JSON language files and translate them in your application.
- Licence: MIT
- Version: 1.0.0
- PHP Versions: 7.x, 8.0+, 8.1+, 8.2+
- Author: Sherri Wheeler
- Packagist: https://packagist.org/packages/syntaxseed/translator
Features
- Easy to use, just set language and point to a JSON file.
- Uses the primary language as the lookup key, so strings are understandable in your application.
- Add any number of languages with a language key.
- All the translations for one string are in the same file/place.
- Fails silently - untranslated strings will just output the lookup string.
- Load more than one language file for different parts of your application.
- Short translation function name (
get
) for easy typing. - Switch target language when needed.
Install
Via Composer:
Or add to composer.json:
Usage
For a more in-depth example, see
examples/
directory.
Language File JSON Format
Changelog
- v1.0.0 - (2018-10-27) Created. Added to GitHub.
All versions of translator with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2|^7.3|^7.4|^8.0|^8.1|^8.2
The package syntaxseed/translator contains the following files
Loading the files please wait ....