You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature related to a specific framework or general for this extension
react-i18next
Is your feature request related to a problem? Please describe.
The issue that I am experiencing comes into play after passing a custom configuration object to i18next utilizing the resources option. As a result of this, i18n-ally is unable to locate the correct language configuration file.
Here is an example that entails my configuration:
And how I utilise it:
Currently, if I alter 'appDebug' to 'app-debug' as shown below, i18n-ally operates correctly. However, this modification does not correspond with my intended code usage.
Describe the solution you'd like
My suggestion to resolve this issue is to facilitate a namespace(s)Map configuration which includes function support. The function should be able to accept the namespace(s), as extracted by i18n-ally, and subsequently return user-defined namespace(s).
The text was updated successfully, but these errors were encountered:
I have the same requirement, for example, my language. json in src/views/AppHeader, and the data I put in the message will remove the src.views key, but I cannot match it with the plugin
I am having the same issue. I am using next-intl and I would like to be able to pass a t() object to a function with a specific namespace. Currently, i18n-ally does not detect the namespace of the t object I am using. amannn/next-intl#954 (comment)
I believe one solution would be to add a configurable option to namespaces, to allow for certain files/folders to all have a certain namespace prefixed configuration. EG:
"i18n-ally.pathsToNamespaces": {
"**/validators/**": "validators", //all files inside validators folder should use a prefixed "validators" namespace
}
Is your feature related to a specific framework or general for this extension
react-i18next
Is your feature request related to a problem? Please describe.
The issue that I am experiencing comes into play after passing a custom configuration object to i18next utilizing the resources option. As a result of this, i18n-ally is unable to locate the correct language configuration file.
Here is an example that entails my configuration:
![image](https://private-user-images.githubusercontent.com/25050610/340321035-6f548436-1f93-4d2a-8a36-0f7c4679e893.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MDE5MzQsIm5iZiI6MTcyNDQwMTYzNCwicGF0aCI6Ii8yNTA1MDYxMC8zNDAzMjEwMzUtNmY1NDg0MzYtMWY5My00Z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UxZWM5NDUyZTViZjI4Y2FlODNkOGY4MDkyNGYxNjRjZWNkMTJjZTk1NTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VdI4jkaIGtn0DkrU6oWzOKKKGXTt_bHsc_TokWUhmQA)
![image](https://private-user-images.githubusercontent.com/25050610/340321927-89fbbf9f-473d-4efb-aedb-663981b9a171.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MDE5MzQsIm5iZiI6MTcyNDQwMTYzNCwicGF0aCI6Ii8yNTA1MDYxMC8zNDAzMjE5MjctODlmYmJmOWYtNDczZC00ZWZiLWFlZGItNjYzOTgxYjlhMTcxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDA4MjcxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhOTEzMjA0Y2MyNGY5ODE5OWM1MGU0MmJiZjY4YTZiOTMwYTlhMzMwNzQ1NDc2NTIwOTk1M2RlY2FlM2E0MmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KMaFD5EJX6Q5AktiC0G8u28AX4B1prXVNRBr_y5QTCk)
And how I utilise it:
Currently, if I alter 'appDebug' to 'app-debug' as shown below, i18n-ally operates correctly. However, this modification does not correspond with my intended code usage.
Describe the solution you'd like
My suggestion to resolve this issue is to facilitate a namespace(s)Map configuration which includes function support. The function should be able to accept the namespace(s), as extracted by i18n-ally, and subsequently return user-defined namespace(s).
The text was updated successfully, but these errors were encountered: