PHPackages                             hurah/translate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. hurah/translate

ActiveLibrary[Localization &amp; i18n](/categories/localization)

hurah/translate
===============

Provides multi language support for Hurah.

v1.0.16(2y ago)02.2k[1 PRs](https://github.com/antonboutkam/hurah-translate/pulls)MITPHPPHP ^8.0 || ^8.1 || ^8.2 || ^8.3CI passing

Since Dec 20Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/antonboutkam/hurah-translate)[ Packagist](https://packagist.org/packages/hurah/translate)[ RSS](/packages/hurah-translate/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (15)Used By (0)

Hurah Translation functionality
===============================

[](#hurah-translation-functionality)

This library / package comes with the Hurah system and has no practical use cases on it's own.

How it is supposed to work.
===========================

[](#how-it-is-supposed-to-work)

Below are directory structure patterns that exist in the system and contain strings that need to be translated. A user interface in the admin section of the admin panel is available to edit the translations.

```
/admin_modules//
/admin_modules///
/public_html//modules/
/public_html//modules//
/public_html//modules///
/public_html///modules/
/classes/Crud//Field
/classes/Crud/Custom///Field

```

To prevent having hundreds of translation files (multiplied by x languages) the translation files should be grouped to the first variable level in the patterns described above.

```
/admin_modules//Locales/.json
/public_html//modules//.json
what to do here ? >>>> /public_html///modules/
/classes/Crud//Field/Locales/.json
/classes/Crud/Custom///Field/Locales/.json

```

\#Translate something

```
