i18n-locale should inject dir attribute #16047
Labels
area: @angular-devkit/build-angular
devkit/build-angular:i18n
feature
Issue that requests a new feature
Milestone
🚀 Feature request
Add dir="rtl" for rtl locales
Command (mark with an
x
)Description
A clear and concise description of the problem or missing capability...Angular pages are always LTR, even when specifying an rtl language in
i18n-locale
parameterDescribe the solution you'd like
If you have a solution in mind, please describe it.When running build with
i18n-locale
set to an RTL language such as Hebrew or Arabic, adddir="rtl"
to html or body tags in index.html.I know that the cli can modify the html, because
base-href
parameter does itDescribe alternatives you've considered
Have you considered any alternative solutions or workarounds?Manually setting the dir tag, but then what happens if I want to support different build configs for rtl, and ltr locales? I will have to manually change the dir tag before every build.
The text was updated successfully, but these errors were encountered: