Method: YARD::Registry.locale

Defined in:
lib/yard/registry.rb

.locale(name) ⇒ I18n::Locale

Returns the locale object for name.

Parameters:

  • name (String)

    the locale name.

Returns:

Since:

  • 0.8.3



271
272
273
# File 'lib/yard/registry.rb', line 271

def locale(name)
  thread_local_store.locale(name)
end