Skip to content

Latest commit

 

History

64 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i18n framework REST API hub

How to setup hub

  1. Setup DB config (./config/db.php)
    'dsn' => 'mysql:host=localhost;dbname=i18n',
    'username' => 'i18n',
    'password' => 'Novem9bit',
    'charset' => 'utf8mb4',
    'tablePrefix' => 'i18n_'
  2. Setup Rest component config (./config/rest.php)
    'api_keys' => [
       'demo_key_123',
       'demo_key_321',
        ...
    ]

How to setup client

Change your i18n module configuration Method component configuration.

Module::instance(
[
    'translation' => [
        'class' => Translation::class,
        'method' => [
            'class' => RestMethod::class,
            'remote_host'=>'my.i18n-hub.com',
            'ssl'=>true,
            'api_key' => 'demo_key_123',
            'exclusions' => ['barev', 'barev duxov', "hayer", 'Hello'],
            'validation' => true,
            'save_translations' => true
        ],
    ],
    ...
]

About

i18n proxy hub

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages