Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/amber/cli/templates/app/shard.yml.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies:

citrine-i18n:
github: amberframework/citrine-i18n
version: 0.1.0
version: 0.2.0

<% case @model when "crecto" -%>
crecto:
Expand Down
4 changes: 2 additions & 2 deletions src/amber/controller/helpers/i18n.cr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module Amber::Controller::Helpers
module I18n
def t(*arg)
::I18n.translate(*arg)
::I18n.translate(*arg, force_locale: context.locale)
end

def l(*arg)
::I18n.localize(*arg)
::I18n.localize(*arg, force_locale: context.locale)
end
end
end