Module: Flycal::Cli::Locale
- Defined in:
- lib/flycal/cli/locale.rb
Overview
CLI-facing locale facade: prefers ~/.flycal config locale, delegates to Flycal::Locale.
Class Method Summary collapse
- .current_locale ⇒ Object
- .day_abbr(date_or_time) ⇒ Object
- .day_name(date_or_time) ⇒ Object
- .format_long_date(date_or_time) ⇒ Object
- .month_name(date_or_time) ⇒ Object
- .override!(locale) ⇒ Object
- .t(key, vars = {}) ⇒ Object
Class Method Details
.current_locale ⇒ Object
34 35 36 37 |
# File 'lib/flycal/cli/locale.rb', line 34 def current_locale ensure_default_provider! Flycal::Locale.current_locale end |
.day_abbr(date_or_time) ⇒ Object
19 20 21 22 |
# File 'lib/flycal/cli/locale.rb', line 19 def day_abbr(date_or_time) ensure_default_provider! Flycal::Locale.day_abbr(date_or_time) end |
.day_name(date_or_time) ⇒ Object
14 15 16 17 |
# File 'lib/flycal/cli/locale.rb', line 14 def day_name(date_or_time) ensure_default_provider! Flycal::Locale.day_name(date_or_time) end |
.format_long_date(date_or_time) ⇒ Object
29 30 31 32 |
# File 'lib/flycal/cli/locale.rb', line 29 def format_long_date(date_or_time) ensure_default_provider! Flycal::Locale.format_long_date(date_or_time) end |
.month_name(date_or_time) ⇒ Object
24 25 26 27 |
# File 'lib/flycal/cli/locale.rb', line 24 def month_name(date_or_time) ensure_default_provider! Flycal::Locale.month_name(date_or_time) end |