diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/AssetManager.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/AssetManager.php b/core/AssetManager.php index 449d992226..cf3e02c564 100644 --- a/core/AssetManager.php +++ b/core/AssetManager.php @@ -459,14 +459,22 @@ class AssetManager $isGenerated = self::isGenerated(self::TRANSLATIONS_JS_FILE); if (!$isGenerated) { - $translationJs = Translate::getInstance()->getJavascriptTranslations(); - self::writeAssetToFile($translationJs, self::TRANSLATIONS_JS_FILE); + self::generateTranslationsJsFile(); } return self::getAbsoluteMergedFileLocation(self::TRANSLATIONS_JS_FILE); } /** + * Generates the translations JS file. + */ + public static function generateTranslationsJsFile() + { + $translationJs = Translate::getInstance()->getJavascriptTranslations(); + self::writeAssetToFile($translationJs, self::TRANSLATIONS_JS_FILE); + } + + /** * Check if the provided merged file is generated * * @param string $filename filename of the merged asset |