Method: LocalizationSimplified.init_current_locale

Defined in:
lib/framework/rholang/localization_simplified.rb,
lib/framework/autocomplete/LocalizationSimplified.rb

.init_current_localeObject



37
38
39
40
41
42
43
44
45
# File 'lib/framework/rholang/localization_simplified.rb', line 37

def self.init_current_locale
    return if @@cur_locale
    
    @@cur_locale = System::get_locale()
    @@cur_locale = @@cur_locale.downcase if @@cur_locale
    @@cur_locale = 'en' unless @@cur_locale
    @@cur_country = System::get_property("country")
    @@cur_country = @@cur_country.downcase if @@cur_country
end