sophokles/translation

1.0.4 2021-07-30 10:17 UTC

This package is auto-updated.

Last update: 2024-10-29 05:46:59 UTC


README

Sophokles Translation Helper

Installation

  1. Include as composer dependency using composer require sophokles/translation
  2. Run composer install to generate the vendor class autoloader
  3. The classes from Sophokles.tranlastion can now be used in your composer project

Usage Examples

Small usage examples have been included in the examples/ folder. The examples are PHP scripts which shows how the translation classes work.

  1. Define the traget language
  1. Register the JSON-tranlationfile to the tranlation class
  1. Get the tranlations with the language class (lang)