mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
allow i18n file loading from any origin
This commit is contained in:
parent
b2184866f2
commit
e453bca309
1 changed files with 3 additions and 1 deletions
|
@ -26,9 +26,11 @@ class i18nActions extends Actions
|
|||
public static function executeServeTranslationFile(string $project, string $resource, string $language)
|
||||
{
|
||||
if (!Transifex::isConfigured()) {
|
||||
throw new Exception('Please set Config::TRANSIFEX_API_KEY in your configuration.');
|
||||
throw new Exception('Please set Config::TRANSIFEX_API_KEY in your configuration.');
|
||||
}
|
||||
|
||||
Response::setHeader(Response::HEADER_CROSS_ORIGIN, "*");
|
||||
|
||||
return View::renderJson(Transifex::getTranslationResourceFile($project, $resource, $language));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue