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,
'locale' => 'en_US', // Lingohub: `en-US`
'name' => 'English'
];
return [
'languages' => true,
'johannschopplich.lingohub' => [
'apiKey' => getenv('LINGOHUB_API_KEY'),
'workspaceId' => 'space_16kPs3bRIpXi-29323',
'projectId' => 'pr_18JCETCbT9NW-31003'
]
];