-
Notifications
You must be signed in to change notification settings - Fork 21
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
Apply to file instead of folder #21
Comments
Thanks for reporting. I will look into it soon. |
How did you know I work with plain JS? :D |
Your profile spoke for itself 😄 |
The node module is already generated in .js. So we can just take that as the base? |
Yes, the code is not really pretty so it will need a bit of work, but it is more or less usable. |
I finished changing everything to JS and published a beta version to npm. It worked with my projects, but it would be great if you could give it a try, thanks. Concerning this issue, you can already run
If you want to configure the output path, you can use
Let me know if any of these option would work for your use case. |
This is not working for me: static-i18n -l en -i en -i es -i ru -i ko -i zh --fileFormat yml --allowHtml true --files 'demo.html' I'm getting:
|
Ok, I had to add the static-i18n -l en -i en -i es -i ru -i ko -i zh --fileFormat yml --allowHtml true --files 'demo.html' . I'm using a file within a folder, so I tried using the
With static-i18n -l en -i en -i es -i ru -i ko -i zh --fileFormat yml --allowHtml true --files 'www/demo.html' --output-dir . |
If your files are in the current directory, your first command is correct, but if they are in the
For your second command, you are missing the input directory, as the final
|
It would be great if we could apply the
static-i18n
command to a single file instead of to a folder.I personally have my
index.html
file in the root path, and I would prefer to keep it that way because that's gonna be the structure in my hosting.Right now I'm forced to place it within a folder so
static-i18n
can work over it, therefore messing my relative paths when outputing the result in a 2 levels depth path.From
./www/index.html
toi18n/es/index.html
.The other option would be to be able to configure the output path, so instead of having
i18n/es/index.html
we could havees/index.html
and therefore solving the relative paths issue.The text was updated successfully, but these errors were encountered: