Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails i18n #136

Closed
antfu opened this issue Dec 7, 2019 · 3 comments
Closed

Rails i18n #136

antfu opened this issue Dec 7, 2019 · 3 comments
Labels
fixed Already fixed in the latest version

Comments

@antfu
Copy link
Contributor

antfu commented Dec 7, 2019

What framework do you want to have? Please provide links of its i18n solution/package.
rails-i18n, https://github.com/svenfuchs/rails-i18n

Additional context
https://github.com/svenfuchs/rails-i18n

Vote

If you would like to see this get supported, please hit 👍 to vote on this. When it's hit 15 👍 I would start to consider implementing this. (PR is also welcome!) Thanks!

@antfu
Copy link
Contributor Author

antfu commented Jan 13, 2020

Hello everyone! Thanks for all the support.

Ruby on rails i18n is now supported in v1.11.0 🚀

Please update to check it out. Let me know if I missed anything.

Cheers!

@antfu antfu added fixed Already fixed in the latest version and removed framework request please vote labels Jan 13, 2020
@antfu antfu closed this as completed Feb 1, 2020
@fydelio
Copy link

fydelio commented Dec 28, 2020

What is required to have i18n ally working with rails? I have this set:

config.i18n.default_locale = :en
config.i18n.available_locales = [:en, :de]
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]

Visual Studio Code Settings

"i18n-ally.pathMatcher": "{locale}.yml",
"i18n-ally.dirStructure": "dir",
"i18n-ally.displayLanguage": "en",
"i18n-ally.localesPaths": "config/locales",
"gitlens.defaultDateFormat": null,
"gitlens.defaultDateShortFormat": "DD.MM.YYYY",
"i18n-ally.enabledFrameworks": [
        "ruby-rails"
    ],
"i18n-ally.enabledParsers": [
        "yaml"
    ]

Unfortunately the inline annotation & hover & direct actions don't work. What is missing?

@antfu
Copy link
Contributor Author

antfu commented Dec 29, 2020

@fydelio can you open a new issue with a minimal reproduction? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Already fixed in the latest version
Development

No branches or pull requests

2 participants