Sha256: f06aedfcc1ac24425798157afd35f25976388fb9e9299f80cdbdeeede3c1989c

Contents?: true

Size: 391 Bytes

Versions: 29

Compression:

Stored size: 391 Bytes

Contents

on 'all_locales' do |request, path|
	wrapper = Utopia::Localization[request]
	
	succeed! content: wrapper.all_locales.join(',')
end

on 'default_locale' do |request, path|
	wrapper = Utopia::Localization[request]
	
	succeed! content: wrapper.default_locale
end

on 'current_locale' do |request, path|
	wrapper = Utopia::Localization[request]
	
	succeed! content: wrapper.current_locale
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
utopia-1.8.3 spec/utopia/localization_spec/controller.rb
utopia-1.8.2 spec/utopia/localization_spec/controller.rb
utopia-1.8.1 spec/utopia/localization_spec/controller.rb
utopia-1.8.0 spec/utopia/localization_spec/controller.rb
utopia-1.7.1 spec/utopia/localization_spec/controller.rb
utopia-1.6.13 spec/utopia/localization_spec/controller.rb
utopia-1.6.12 spec/utopia/localization_spec/controller.rb
utopia-1.6.11 spec/utopia/localization_spec/controller.rb
utopia-1.6.10 spec/utopia/localization_spec/controller.rb
utopia-1.6.9 spec/utopia/localization_spec/controller.rb
utopia-1.6.8 spec/utopia/localization_spec/controller.rb
utopia-1.6.5 spec/utopia/localization_spec/controller.rb
utopia-1.6.4 spec/utopia/localization_spec/controller.rb
utopia-1.6.3 spec/utopia/localization_spec/controller.rb
utopia-1.6.2 spec/utopia/localization_spec/controller.rb
utopia-1.6.1 spec/utopia/localization_spec/controller.rb
utopia-1.6.0 spec/utopia/localization_spec/controller.rb
utopia-1.5.2 spec/utopia/localization_spec/controller.rb
utopia-1.5.1 spec/utopia/localization_spec/controller.rb
utopia-1.5.0 spec/utopia/localization_spec/controller.rb