From 1f952fc454a9b0a3cafbdb221bc7e57cfeff58d4 Mon Sep 17 00:00:00 2001 From: Deborah Kaplan Date: Fri, 23 Jan 2026 16:45:07 +0000 Subject: [PATCH] feat: improved local translation handling makes it easier to add instance-specific, locally defined translation strings FIXES: AU-2654 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d219ae32..78cedad2 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,11 @@ transifex_utils = ./node_modules/.bin/transifex-utils.js i18n = ./src/i18n transifex_input = $(i18n)/transifex_input.json +# Variables for additional translation sources and imports +ATLAS_EXTRA_SOURCES = +ATLAS_EXTRA_INTL_IMPORTS = +ATLAS_OPTIONS = + # This directory must match .babelrc . transifex_temp = ./temp/babel-plugin-formatjs @@ -40,9 +45,10 @@ pull_translations: translations/frontend-component-header/src/i18n/messages:frontend-component-header \ translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \ translations/frontend-lib-special-exams/src/i18n/messages:frontend-lib-special-exams \ - translations/frontend-app-learning/src/i18n/messages:frontend-app-learning + translations/frontend-app-learning/src/i18n/messages:frontend-app-learning \ + $(ATLAS_EXTRA_SOURCES) - $(intl_imports) frontend-platform paragon frontend-component-header frontend-component-footer frontend-lib-special-exams frontend-app-learning + $(intl_imports) frontend-platform paragon frontend-component-header frontend-component-footer frontend-lib-special-exams frontend-app-learning $(ATLAS_EXTRA_INTL_IMPORTS) # This target is used by Travis.