Skip to content

izzle-org/translation-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Izzle Translation Lib

Simple Translation Lib

Installation

Using npm:

$ composer require izzle/translation

Usage

use Izzle\Translation\Services\Translation;

// Init and load translation file
$translation = new Translation('paht_to_file.json');

// Translate
// Ex. { "global": { "hello": "Hello {0}" } }"
echo $translation->translate('global.hello', ['World']);

Output

Hello World

License

Copyright (c) 2020-present Izzle

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages