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

Support for Namespaces #122

Closed
feelinwavy opened this issue Nov 27, 2019 · 12 comments
Closed

Support for Namespaces #122

feelinwavy opened this issue Nov 27, 2019 · 12 comments

Comments

@feelinwavy
Copy link

Does it support colon notation?

How can I get things working when namespace is selected with :

Снимок экрана 2019-11-27 в 21 51 01

@antfu
Copy link
Contributor

antfu commented Nov 28, 2019

@feelinwavy Wow, first time to see this syntax! I would love to support it if possible. May I have more information listed below?

  • The framework/i18n package you are using
  • Some document links about the "namespace" feature

Thanks!

@feelinwavy
Copy link
Author

@antfu, I use next-i18next. https://www.npmjs.com/package/next-i18next
Here is simple example with this syntax https://www.i18next.com/principles/namespaces#sample

It would be sooo awesome!

@antfu
Copy link
Contributor

antfu commented Nov 29, 2019

Thanks. It looks a little complicated to integrate into the current codebase. So it may take a little bit longer. Please keep turned! 😃

UPDATE: Please track the progress on #129

@antfu antfu changed the title Support for colon (:) notation Support for Namespaces Nov 29, 2019
@antfu antfu mentioned this issue Nov 29, 2019
12 tasks
@antfu antfu added the has pr label Nov 30, 2019
@stale
Copy link

stale bot commented Dec 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 30, 2019
@antfu antfu removed the stale label Dec 30, 2019
@stale
Copy link

stale bot commented Jan 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 29, 2020
@stale stale bot closed this as completed Feb 5, 2020
@antfu antfu reopened this Feb 6, 2020
@stale stale bot removed the stale label Feb 6, 2020
@stale
Copy link

stale bot commented Mar 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 7, 2020
@stale stale bot closed this as completed Mar 14, 2020
@hendrul
Copy link

hendrul commented Jun 17, 2021

Awesome extension! This feature would be really appreciated.

@marianlopezaz
Copy link

Hello, Im having the same issue trying to use nextI18nNext with i18nAlly extension and the extension its not wokring with t(namespace:key) or t(namespace:key.sub_key) , there is any solution?

@diegosanz
Copy link

Any progress? Thanks!

@louga31
Copy link

louga31 commented Aug 20, 2022

I have the same issue

@hussain7college
Copy link

hussain7college commented Oct 8, 2023

this solution worked with me:
just add these lines to the file inside the folder ".vscode" in the root directory (create them if not exist) => ".vscode/settings.json":
"i18n-ally.localesPaths": "src/translation/locales", "i18n-ally.namespace": true, "i18n-ally.pathMatcher": "{locale}/{namespace}.json",

@JulesLecuir
Copy link

JulesLecuir commented Jun 5, 2024

this solution worked with me: just add these lines to the file inside the folder ".vscode" in the root directory (create them if not exist) => ".vscode/settings.json": "i18n-ally.localesPaths": "src/translation/locales", "i18n-ally.namespace": true, "i18n-ally.pathMatcher": "{locale}/{namespace}.json",

@hussain7college Does it work with the ":" as a separator for namespace ?

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

No branches or pull requests

8 participants