Sha256: 70247aac5ff0a7665216fbf52c1afa365e04bfe7820d014fc896d270a5a586fc

Contents?: true

Size: 521 Bytes

Versions: 6

Compression:

Stored size: 521 Bytes

Contents

# Assign I18n Object names:
#
# e.g.)
#
# I18n::Object.namespaces = %w[
#   notification
#   slack_notificaiton/admin
#   slack_notificaiton/consumer
# ]
#
# en:
#   notification:
#     say: Hi, %{name}!
#   slack_notification:
#     admin:
#       say: Hi, admin!
#     consumer:
#       say: Hi, consumer!
#
# Notificaiton.say(name: 'alice') # Hi, alice!
# Notification.hello # NoMethodError
# SlackNotification::Admin.say # Hi, admin!
# SlackNotification::Consumer.say # Hi, consumer!

I18n::Object.namespaces = %w[
]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
i18n-object-0.1.5 lib/generators/i18n/object/templates/initializer.tt
i18n-object-0.1.4 lib/generators/i18n/object/templates/initializer.tt
i18n-object-0.1.3 lib/generators/i18n/object/templates/initializer.tt
i18n-object-0.1.2 lib/generators/i18n/object/templates/initializer.tt
i18n-object-0.1.1 lib/generators/i18n/object/templates/initializer.tt
i18n-object-0.1.0 lib/generators/i18n/object/templates/initializer.tt