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
For one of our localization vendors, we need to provide them with unique po file names. We have ~8 components that lingui manages translations for that each have the same filesystem pattern.
To generate unique filenames and keep the po files separated into their respective component folders, we'd need something more like the following. The name and locale strings would have to be replaced globally throughout the path string when locating po files and extracting messages.
I have a fork w/ some tests that are passing but I don't quite know if that's enough to feel confident... My question is: Would you be interested in a PR that attempted to do this?
If the answer is yes, I'll fill out everything below and link my fork!
To Reproduce
Steps to reproduce the behavior, possibly with minimal code sample, e.g:
import { Trans } from "@lingui/react"
export default function App() {
return <Trans>This should be translated!</Trans>
}
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
jsLingui version lingui --version
Babel version npm list @babel/core
Your Babel config (e.g. .babelrc) or framework you use (Create React App, Meteor, etc.)
The text was updated successfully, but these errors were encountered:
Does anyone have time to take a quick peek at this and give me a "yes we're interested" or "no, don't pursue this"?
I have a fork w/ some tests that are passing but I don't quite know if that's enough to feel confident... My question is: Would you be interested in a PR that attempted to do this?
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.
Describe the bug
For one of our localization vendors, we need to provide them with unique po file names. We have ~8 components that lingui manages translations for that each have the same filesystem pattern.
catalog path (taken directly from the docs):
Filesystem:
To generate unique filenames and keep the po files separated into their respective component folders, we'd need something more like the following. The name and locale strings would have to be replaced globally throughout the path string when locating po files and extracting messages.
Catalog path:
Ideal Filesystem:
I have a fork w/ some tests that are passing but I don't quite know if that's enough to feel confident... My question is: Would you be interested in a PR that attempted to do this?
If the answer is yes, I'll fill out everything below and link my fork!
To Reproduce
Steps to reproduce the behavior, possibly with minimal code sample, e.g:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
lingui --version
npm list @babel/core
.babelrc
) or framework you use (Create React App, Meteor, etc.)The text was updated successfully, but these errors were encountered: