1. Go to this page and download the library: Download manujoz/translation 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/ */
manujoz / translation example snippets
return [
"hello" => "Hi!",
"bye" => "Good bye",
"login.messages.ok" => "You are logged",
"signup.messages.welcome" => "Welcome to my site {name}"
]
return [
"hello" => "Hi!",
"bye" => "Good bye",
"login.messages.ok" => "You are logged",
"signup.messages.welcome" => "Welcome to my site {not will be replaced} [[willBeReplaced]]"
]