set directional-scss variable at build time

Viewed 651

i'm using angular to build multi language system, with angular i18n for internalization I have to build each language as a different package. Since some of the languages are RTL, i'm using directional scss (instead of importing different stylesheets or applying class=rtl on elements).

The issue is, that I don't want to change code before each build. I need to change just one simple line in scss variables file: $dir = ltr to $dir = rtl on RTL languages.

Is it possible to extract this value from the build script or something ? that would create much smoother build process.

2 Answers
Related