You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New code has been added so that raw javascript objects can now be used as
a source for the translations.
If localize receives an object as a first parameter, items with
'data-localize' tags will be updated with the text contained in the
matching object properties. Said object will be converted to a valid json
object beforehand, so no problems shall arise if the given object include
functions as a value for any of its keys.
In the case localize method receives any parameter that is not an object,
the default behaviour where the translations are retrieved from an
external file will be applied.
This should solve the following issue:
#62
0 commit comments