From d7c772c8ea1d683559b06e4449aecfb1793e3912 Mon Sep 17 00:00:00 2001 From: Milos Brzakovic Date: Fri, 9 Jul 2021 15:27:29 +0200 Subject: [PATCH] Fix for translation - YAML.load --- scripts/update_locales.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_locales.js b/scripts/update_locales.js index ef00803cf..43e8d9940 100644 --- a/scripts/update_locales.js +++ b/scripts/update_locales.js @@ -27,6 +27,7 @@ if (process.env.transifex_password) { } else { // Credentials can be stored in transifex.auth as a json object. This file is gitignored. // You can use an API key instead of your password: https://docs.transifex.com/api/introduction#authentication + // in which case for user parameter value should be: "api" // { // "user": "username", // "password": "password" @@ -242,7 +243,7 @@ function getLanguage(resourceURL) { return res.json(); }) .then(json => { - callback(null, YAML.safeLoad(json.content)[code]); + callback(null, YAML.load(json.content)[code]); }) .catch(err => callback(err)); };