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 __dirname as a part of the build directory #86

Open
fsmaia opened this issue Feb 25, 2021 · 0 comments
Open

Support __dirname as a part of the build directory #86

fsmaia opened this issue Feb 25, 2021 · 0 comments

Comments

@fsmaia
Copy link

fsmaia commented Feb 25, 2021

  • version:
  • node version:
  • npm (or yarn) version:

Do you want to request a feature or report a bug?:
Feature

What is the current behavior?:
Currently, there is a static buildDir (e.g. app/translations) which produces translations in a single file (one per locale).

What is the expected behavior?:
We could support <dirname> in the buildDir, so we could extract the messages to a JSON file inside the component folder.

For instance, if we have an app/components/Button/index.ts file, then its messages could be extracted to aop/components/Button/translations/en-US.json if we set the buildDir to <dirname>/translations.

Suggested solution:
Simply replacing <dirname> with __dirname.

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

No branches or pull requests

1 participant