From 9078d4e7ca2e68458a3cb341d5b4f00b53878647 Mon Sep 17 00:00:00 2001 From: Zacharias Zacharodimos Date: Thu, 21 Mar 2024 17:11:55 +0100 Subject: [PATCH] i18next: support user defined overriden translations for react --- .../site/{{cookiecutter.package_name}}/webpack.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{cookiecutter.project_shortname}}/site/{{cookiecutter.package_name}}/webpack.py b/{{cookiecutter.project_shortname}}/site/{{cookiecutter.package_name}}/webpack.py index 42e66d7..ec34837 100644 --- a/{{cookiecutter.project_shortname}}/site/{{cookiecutter.package_name}}/webpack.py +++ b/{{cookiecutter.project_shortname}}/site/{{cookiecutter.package_name}}/webpack.py @@ -11,6 +11,9 @@ entry={ # Add your webpack entrypoints }, + # used to override react translations. + # the file points to site/{{cookiecutter.project_shortname}} during build time + aliases={"@overriden_translations": "../translations"}, ), }, )