PHP code example of johannschopplich / kirby-lingohub

1. Go to this page and download the library: Download johannschopplich/kirby-lingohub library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

johannschopplich / kirby-lingohub example snippets


# /site/languages/en.php
return [
    'code' => 'en',
    'default' => true,
    'direction' => 'ltr',
    'locale' => 'en_US',
    // Or if you need multiple locales:
    // 'locale' => [
    //     'LC_ALL' => 'en_US.UTF-8',
    // ]
    'name' => 'English'
];

# /site/config/config.php
return [
    'languages' => true,

    'johannschopplich.lingohub' => [
        'apiKey' => '<LINGOHUB_API_KEY>',
        'workspaceId' => 'space_123-456',
        'projectId' => 'pr_123-456',
    ]
];