Method: Applocale::Locale.filename
- Defined in:
- lib/applocale/Util/lang.rb
.filename(devicemodel, locale) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/applocale/Util/lang.rb', line 10 def self.filename(devicemodel, locale) if devicemodel == Platform::IOS return !FILENAME_IOS[locale].nil? ? FILENAME_IOS[locale] : "#{locale}.strings" elsif devicemodel == Platform::ANDROID return File.join(FILENAME_ANDROID[locale],'strings.xml') elsif devicemodel == Platform::JSON return "#{locale}.json" end return nil end |