From 85c2b2a253f29e6bef071c22f729aae1f7c2675c Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Fri, 4 Oct 2024 12:46:37 +0300 Subject: [PATCH 1/2] Improve fallback languages for i18next --- workers/loc.api/i18next/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/workers/loc.api/i18next/index.js b/workers/loc.api/i18next/index.js index 6baaba7f..5db2016d 100644 --- a/workers/loc.api/i18next/index.js +++ b/workers/loc.api/i18next/index.js @@ -22,7 +22,12 @@ module.exports = (params) => { const configs = merge( { - fallbackLng: 'en', + fallbackLng: { + es: ['es-EM'], + pt: ['pt-BR'], + zh: ['zh-CN'], + default: ['en'] + }, ns: Object.values(TRANSLATION_NAMESPACES), defaultNS: 'email', preload: [...transPaths.reduce((accum, transPath) => { From df6ddb5e37638cbfb6767db1cde0f4440145a775 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Mon, 7 Oct 2024 09:41:26 +0300 Subject: [PATCH 2/2] Bump version up to 4.11.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b8c6dc4b..76710cec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report", - "version": "4.11.0", + "version": "4.11.1", "description": "Reporting tool", "main": "worker.js", "license": "Apache-2.0",