All Projects → kayw-geek → background-translation-i18n

kayw-geek / background-translation-i18n

Licence: other
Based on the YII2 module to translate JSON formatted translation files on the web

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to background-translation-i18n

yii2-stat
Yii2 Multi Web Statistic Module (yametrika, google-analytic, own db-counter)
Stars: ✭ 18 (+63.64%)
Mutual labels:  yii2, yii2-extension, yii2-modules
yii2-queuemanager
Yii2 Queue Manager (Analytic & Monitor)
Stars: ✭ 18 (+63.64%)
Mutual labels:  yii2, yii2-extension, yii2-modules
yii2-telegram
Support chat for site based on Telegram bot
Stars: ✭ 49 (+345.45%)
Mutual labels:  yii2, yii2-extension, yii2-modules
Yii2 Translate Manager
Translation Manager
Stars: ✭ 221 (+1909.09%)
Mutual labels:  yii2, translate, yii2-extension
yii2-blog
Simple, configurable blog module for Yii2 (post, comment, nested category, tags). + frontend, backend. + SEO! (Opengraph, Schema.org) ~~~COMING SOON V2.0~~~ Please STAR this repo
Stars: ✭ 79 (+618.18%)
Mutual labels:  yii2, yii2-extension, yii2-modules
ar-variation
Variation behavior for ActiveRecord
Stars: ✭ 46 (+318.18%)
Mutual labels:  i18n, yii2, yii2-extension
yii2-translatable
Translatable behavior aggregates logic of linking translations to the primary model
Stars: ✭ 15 (+36.36%)
Mutual labels:  yii2, yii2-extension
yii2-sweet-submit
sweet sumit using sweetalert
Stars: ✭ 26 (+136.36%)
Mutual labels:  yii2, yii2-extension
yii2-array-query
Yii2 component that allows for searching/filtering the elements of an array.
Stars: ✭ 34 (+209.09%)
Mutual labels:  yii2, yii2-extension
yii2-cashier
Yii2 Cashier provides an interface to Stripe's subscription billing services.
Stars: ✭ 43 (+290.91%)
Mutual labels:  yii2, yii2-extension
install
basic script for project installation
Stars: ✭ 17 (+54.55%)
Mutual labels:  yii2, yii2-extension
yii2-newsletter
Module for saving user contacts from newsletter form to database
Stars: ✭ 17 (+54.55%)
Mutual labels:  yii2, yii2-extension
behavior-trait
Allows handling events via inline declared methods, which can be added by traits
Stars: ✭ 18 (+63.64%)
Mutual labels:  yii2, yii2-extension
yii2-mailqueue
Yii2 mail queue component for yii2-swiftmailer.
Stars: ✭ 15 (+36.36%)
Mutual labels:  yii2, yii2-extension
content
Content management system for Yii2
Stars: ✭ 54 (+390.91%)
Mutual labels:  yii2, yii2-extension
yii2-lets-talk
With this extension you can open chat with someone in popular messengers using the link on your website.
Stars: ✭ 15 (+36.36%)
Mutual labels:  yii2, yii2-extension
ar-search
Provides unified search model for Yii ActiveRecord
Stars: ✭ 31 (+181.82%)
Mutual labels:  yii2, yii2-extension
yii2-bankcard-info
银行卡卡号分析(Yii2扩展)
Stars: ✭ 15 (+36.36%)
Mutual labels:  yii2, yii2-extension
yii2-jwt-tools
An easy way to configure JWT authentication and validation on Yii Framework 2 Projects
Stars: ✭ 22 (+100%)
Mutual labels:  yii2, yii2-extension
deepl-php-lib
🧠 DeepL API Client Library supporting PHP >= 7.3
Stars: ✭ 50 (+354.55%)
Mutual labels:  i18n, translate

Yii2 - Background Translation I18n

Open Source LoveMIT LicenceGitHub starssaythanks FOSSA Status

👽 Based on the YII2 module to translate JSON formatted translation files on the web

Introduction💦

This project is suitable for client-side international translation. It supports importing JSON files to web pages, and operation and maintenance or translators export the translated JSON files after translation on the web

Installation💚

Via Composer

composer require weikaiiii/background-translation-i18n

Migration💜

Run the following command in Terminal for database migration:

yii migrate/up --migrationPath=@vendor/weikaiiii/background-translation-i18n/migrations

Config💓

Turning on the translate Module:

Simple example:

'modules' => [
    'translate' => [
        'class'=>'weikaiiii\backgroundTranslationI18n\Module'
    ],
],

A more complex example including database table with multilingual support is below:

    'modules' => [
        'translate'=>[
            'class'=>'weikaiiii\backgroundTranslationI18n\Module',
            'allowedIPs'=>['127.0.0.1'], // IP addresses from which the translation interface is accessible.
            'source_lang'=>'en-US', //Translate according to source language encoding.

        ]
    ],

Usage😶

Point

Every time a JSON file is uploaded, it will be judged based on the existing data and will not cause data duplication.

Json File Format Example

{
   "library":{
      "hello":"Hello from library"
   },
   "documents":{
      "hello":"Hello from documents"
   }
}

URLs

URLs for the translating tool:

/translate/translate-json/export         // Export the translated JSON file.
/translate/translate-json/index?language_id={xx-XX}      // Translate specific language pages.
/translate/translate-json/list         // Language code list page.
/translate/translate-json/create    // Import JSON source language files.

Screenshots🐔

List of languages

1599540101194

Translate on the admin interface

1599540236622

Statement💌

The project view part and language list part are borrowed from the "lajax/yii2-translate-manager" project. Thanks lajax for the great work.

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].