jquery-glob icon indicating copy to clipboard operation
jquery-glob copied to clipboard

$.localize doesn't work without culture

Open valodzka opened this issue 14 years ago • 2 comments

For example, this script fails:

$.culture = $.cultures.ru;
$.localize('hello', 'ru', 'world');
$.localize('hello')

TypeError: culture is undefined { message="culture is undefined"}

valodzka avatar Jun 11 '10 19:06 valodzka

This is a nasty bug and it prevents the use of the plugin in the real world...

luisabreu avatar Dec 13 '10 12:12 luisabreu

I have fixed it in https://github.com/nikgraf/jquery-global/commit/fc51c8c7fb585871132f63798f47d44958c3ab6b

nikgraf avatar Dec 27 '10 01:12 nikgraf