izzle/translation

Izzle Translation Library and Classes

Maintainers

Package info

github.com/izzle-org/translation-lib

Homepage

pkg:composer/izzle/translation

Statistics

Installs: 81

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.3.1 2021-05-06 09:50 UTC

This package is auto-updated.

Last update: 2026-03-06 19:56:16 UTC


README

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