Download the PHP package shypes/language-translator without Composer
On this page you can find all versions of the php package shypes/language-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shypes/language-translator
More information about shypes/language-translator
Files in shypes/language-translator
Package language-translator
Short Description This is a simple light weight language parser to help with language key translation built for speed using in-memory caching optimization technique.
License MIT
Homepage https://github.com/Shypes/language-translator#readme
Informations about the package language-translator
@shypes/language-translator-php
Introduction
This is a simple light weight language parser to help with language key translation built for speed using in-memory caching optimization technique.
Language file only get loaded once during your application life cycle
Install
Using Composer
Usage
Follow the set by step guide below
Language Folder Setup
Create a dedicated folder to store your language template file.
Default folder is lang
from your base directory configuration,
You will see how to set up your base directory below
Create the different sample files below in the language folder
ar.json
en.json
Initilaise the Application
Loading with optional parameters
Some Basic Configuration - Optional
Translation begin here
Using a function
In line Langauge Loading Supported, this help you load your language data directly with a file
Dynamic language template
It also support templated json strings
Output:
Switch between Language Folder
Check out the sample files in the test directory
License
MIT © Tosin Adesipe