This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<type>(<scope>): <subject> | |
<body> | |
<footer> | |
#------------------------------------------------------------------------------- | |
# <type> | |
# - feat: A new feature | |
# - fix: A bug fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/i18n_lookup.rb | |
class I18n::Backend::Simple | |
module Implementation | |
protected | |
def lookup(locale, key, scope = [], options = {}) | |
init_translations unless initialized? | |
keys = I18n.normalize_keys(locale, key, scope, options[:separator]) |
OlderNewer