Skip to content

Rename yaml files to yml to fix i18n loading#27

Merged
KimNorgaard merged 2 commits intoKimNorgaard:mainfrom
adamzapasnik:main
Apr 14, 2026
Merged

Rename yaml files to yml to fix i18n loading#27
KimNorgaard merged 2 commits intoKimNorgaard:mainfrom
adamzapasnik:main

Conversation

@adamzapasnik
Copy link
Copy Markdown
Contributor

the code doesn't load yaml files because the regexp uses yml

I18n.load_path += Dir[File.expand_path('../config/locales/*.yml', __dir__)]

@adamzapasnik
Copy link
Copy Markdown
Contributor Author

ping @KimNorgaard

Copy link
Copy Markdown
Owner

@KimNorgaard KimNorgaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KimNorgaard
Copy link
Copy Markdown
Owner

ping @KimNorgaard

Thanks.

Seems like the tests are failing. Might want to take a look at that.

@adamzapasnik
Copy link
Copy Markdown
Contributor Author

Should be fixed, apologies for the inconvenience.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the test I18n load path with the project’s .yml locale files so translations are actually loaded during specs.

Changes:

  • Update spec/spec_helper.rb to load config/locales/*.yml (instead of *.yaml).
  • Add locale translation files under config/locales/ for several languages.

Reviewed changes

Copilot reviewed 1 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
spec/spec_helper.rb Fixes the locale glob to match .yml, enabling I18n translations in specs.
config/locales/en.yml Adds English error message translations for hostname validation.
config/locales/es.yml Adds Spanish error message translations for hostname validation.
config/locales/fr.yml Adds French error message translations for hostname validation.
config/locales/de.yml Adds German error message translations for hostname validation.
config/locales/zh.yml Adds Chinese error message translations for hostname validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KimNorgaard KimNorgaard merged commit fed04c5 into KimNorgaard:main Apr 14, 2026
9 checks passed
@KimNorgaard
Copy link
Copy Markdown
Owner

@adamzapasnik pushed 2.0.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants