feat: improved local translation handling
makes it easier to add instance-specific, locally defined translation strings FIXES: AU-2654
This commit is contained in:
10
Makefile
10
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.
|
||||
|
||||
Reference in New Issue
Block a user