This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Aws\S3\S3Client; | |
$client = S3Client::factory([ | |
'credentials' => [ | |
'key' => env('AWS_ACCESS_KEY_ID'), | |
'secret' => env('AWS_SECRET_ACCESS_KEY') | |
], | |
'region' => env('AWS_DEFAULT_REGION'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get a translation from the stack by it's group and key | |
function getTranslation(group_dot_key_string) { | |
let [group, key] = group_dot_key_string.split('.'); | |
if (Oxy.translations[group] === undefined || Oxy.translations[group][key] === undefined) { | |
return group_dot_key_string; | |
} | |
return Oxy.translations[group][key]; |