I have a project developed using AngularJS and Bootstrap. The system should support all languages, and all the labels should switch whenever the user selects a different language.
This is working ok except for one thing: The same sentence displays different length in different languages. As a result, some labels exceed the allocated width and spoil the way things are being display.
Due to the structure of the page, I cannot use wrapping.
I would like to detect whenever a label's length exceeds the allocated space and automatically reduce the font size till it fits (you can see an example in Google Translate).
Any suggestions how this can be done?
Thanks.