Sha256: 239d4ac43bcb94e3131e39b1484380f5e2670a40105b8a6188af198e0d66aef4

Contents?: true

Size: 352 Bytes

Versions: 14

Compression:

Stored size: 352 Bytes

Contents

module PolyglotIos
  module Resource
    class Language < Base

      include Helper::General

      def code(use_simple_naming = false)
        code = locale.downcase
        return code if !use_simple_naming
        return code.split("_").first
      end

      def clean_name()
        clean_variable_name(name)
      end
      
    end
  end
end
  

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ios_polyglot_cli-2.6.3 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.6.2 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.6.1 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.6.0 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.5.1 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.5.0 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.4.0 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.3.0 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.2.2 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.2.1 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.2.0 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.1.1 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.1.0 lib/ios_polyglot_cli/api/language.rb
ios_polyglot_cli-2.0.1 lib/ios_polyglot_cli/api/language.rb