motion_i18n 0.0.1 → 0.0.2

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.
@@ -1,5 +1,6 @@
1
1
  module I18n
2
2
  def self.set_locale(locale)
3
+ remove_locale
3
4
  NSUserDefaults.standardUserDefaults.setObject([locale], forKey: "AppleLanguages")
4
5
  NSUserDefaults.standardUserDefaults.synchronize
5
6
  end
@@ -7,4 +8,8 @@ module I18n
7
8
  def self.current_locale
8
9
  NSLocale.preferredLanguages.objectAtIndex(0)
9
10
  end
11
+
12
+ def self.unset_locale
13
+ NSUserDefaults.standardUserDefaults.removeObjectForKey("AppleLanguages")
14
+ end
10
15
  end
@@ -1,3 +1,3 @@
1
1
  module MotionI18n
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: