-
Notifications
You must be signed in to change notification settings - Fork 11
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
questions for .po file generation #6
Comments
All good questions! Just off the top of my head: Maybe it will work if you take out the array brackets in the 'header' value. The code expects header to be an object. Other than that your config looks fine. The root project folder is where the
Adding this to your config would change the output location to the folder 'i18n' and change the name of the output file to 'custom-name.po'. ( I believe I have to change a little bit of code to make this work) Currently, only one I can dig in deeper and write up some more documentation after work today. |
I just re-hauled the loader and multiple issues have been fixed. if you want to use the method Currently only one output I've actually thought of enabling multiple |
thanks for your note and update. I agree that it makes sense to support just one .po file. I do not think there is a use case for multiple .po files at this time. I will check out your changes and let you know if I have feedback. thanks again. is your policy not to close issues and leave them open until the original requestor closes them? my project priorities shifted and so I will probably get back to this Sun. or after. |
A use case for multiple po files... If you combine this with something like po-loader; you can use webpack's code splitting to create language bundles for only the loaded components, instead of having to download the site's entire language pack... |
hi, when I run webpack, I see an undefined.po file gets generated at the root of my project.
this is what the contents of my gettext.config.js looks like:
I'm not clear if I'm setting the methods property correctly. I'm trying to use the i18n.t() function for translations. thanks.
The text was updated successfully, but these errors were encountered: