Class: PolyglotFlutter::Resource::Language
- Includes:
- Helper::General
- Defined in:
- lib/flutter_polyglot_cli/api/language.rb
Constant Summary
Constants included from Helper::General
Helper::General::ESCAPE_KEYWORDS
Constants included from Helper::Depaginate
Instance Method Summary collapse
Methods included from Helper::General
#clean_enum_name, #clean_variable_name, #config, #escape_keyword_if_needed, #escape_with_underscore_if_needed, #extract_translations, #find_app_language, #generate_locales, #generate_localization_keys, #generate_static_locales, #generate_strings, #indent, #project_configs, #token
Methods inherited from Base
Methods included from Helper::Depaginate
Instance Method Details
#clean_name ⇒ Object
13 14 15 |
# File 'lib/flutter_polyglot_cli/api/language.rb', line 13 def clean_name clean_variable_name(name) end |
#code(use_simple_naming = false) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/flutter_polyglot_cli/api/language.rb', line 6 def code(use_simple_naming = false) code = locale.downcase return code unless use_simple_naming code.split('_').first end |