'how to localize dropdown values using jquery.i18n

I have some values in my dropdown and I want them to change as I change their text according to the value given in the language Json file.

Is there a way to do this using jquery.i18n?

I can achieve this by giving (data-i18n="KEY") attribute to every option and this will give me my desired output but I want a better and easy approach to perform this task.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source