Skip to content

Commit

Permalink
Fix spelling of local variable (#1925)
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Lemuet <Spone@users.noreply.github.com>
  • Loading branch information
olleolleolle and Spone committed Dec 4, 2023
1 parent b399f26 commit 252d814
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ nav_order: 5

## main

* Fix spelling in a local variable.

*Olle Jonsson*

## 3.8.0

* Use correct value for the `config.action_dispatch.show_exceptions` config option for edge Rails.
Expand Down
6 changes: 3 additions & 3 deletions lib/rails/generators/locale/component_generator.rb
Expand Up @@ -34,11 +34,11 @@ def translation_keys
end

def destination(locale = nil)
extention = ".#{locale}" if locale
extension = ".#{locale}" if locale
if sidecar?
File.join(component_path, class_path, "#{file_name}_component", "#{file_name}_component#{extention}.yml")
File.join(component_path, class_path, "#{file_name}_component", "#{file_name}_component#{extension}.yml")
else
File.join(component_path, class_path, "#{file_name}_component#{extention}.yml")
File.join(component_path, class_path, "#{file_name}_component#{extension}.yml")
end
end
end
Expand Down

0 comments on commit 252d814

Please sign in to comment.