yukiscoffee/coffeetranslation

A simple PHP localization library that relies on no extensions and has no additional dependencies.

v1.0 2024-07-20 00:15 UTC

This package is auto-updated.

Last update: 2024-10-31 00:18:15 UTC


README

A simple PHP localization library. This relies on no extensions and has no additional dependencies.

Installation

The recommended installation method is via Composer:

composer require yukiscoffee/coffeetranslation

Usage

CoffeeTranslation stores translation files in a YAML-like language.

en-US/hello.i18n

# This is a comment.

hello: "Hello."

ja-JP/hello.i18n

# This is a comment.

hello: "こんにちは。"

There is an extensive configuration API which can be accessed by CoffeeTranslation::getConfigApi().

Acknowledgements

CoffeeTranslation has been supported by the work of the following developers or projects:

  • Rehike - The primary project for which CoffeeTranslation was made.
  • Isabella (kawapure) - A lead developer of Rehike who revised the CoffeeTranslation source code during its use in Rehike.