imba-localization 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/localization.imba CHANGED
@@ -56,8 +56,8 @@ export class Localization
56
56
  return preferred if languages[preferred]
57
57
  return default
58
58
 
59
- set active name
60
- name = name and languages[name] ? name : active
59
+ set active lang
60
+ const name = languages[lang] ? lang : active
61
61
  if window.localStorage.getItem('imba-localization') != name
62
62
  window.localStorage.setItem('imba-localization', name)
63
63
  onchange(name) if onchange isa Function
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imba-localization",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/HeapVoid/imba-localization.git"