izzle/translation

Izzle Translation Library and Classes

0.1.2 2020-05-08 08:05 UTC

This package is auto-updated.

Last update: 2020-07-17 13:33:32 UTC


README

Simple Translation Lib

Installation

Using npm:

$ composer require izzle/translation

Usage

use Izzle\Translation\Services\Translation;

// Init and load translation file
Translation::load('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