(env) [indico@indico indico]$ npx react-jsx-i18n compile indico/translations/mn/LC_MESSAGES/messages-react.po indico/translations/mn/LC_MESSAGES/messages-react.json
Need to install the following packages:
react-jsx-i18n
Ok to proceed? (y) y
Invalid path: indico/translations/mn/LC_MESSAGES/messages-react.po
That sounds like you did not run npm ci
or you aren’t in the src
folder.
(env) [indico@indico ~]$ cd src/
(env) [indico@indico src]$ npx react-jsx-i18n compile indico/translations/mn/LC_MESSAGES/messages-react.po indico/translations/mn/LC_MESSAGES/messages-react.json
Invalid path: indico/translations/mn/LC_MESSAGES/messages-react.po
(env) [indico@indico src]$ npm ci
Killed .........] / reify:commander: timing reify:loadBundles Completed in 0ms
(env) [indico@indico src]$
If npm ci
gets killed something is wrong. Lack of memory maybe? In any case, use the indico i18n compile-messages-react
command once your node environment is working correctly…
4GB ram it works but these are the errors
2021-04-07T09_12_38_863Z-debug.log (283.5 KB)
Hm, maybe a gcc version that’s too old? Anyway, check the other thread, I built a wheel for you and linked it there.
Hi, what would be the path to source language for transifex? thanks.
tx INFO: Updating /opt/indico/.transifexrc file…
The Transifex Client syncs files between your local directory and Transifex.
The mapping configuration between the two is stored in a file called .tx/config
in your current directory. For more information, visit
Transifex Help Center.[?] Enter the path to your local source file:
No file was found in that path. Please correct the path or make sure a file exists in that location.
[?] Enter the path to your local source file: /opt/indico/dev/indico/src
Sorry I should have run this command from inside the
src
folder. I have pulled the mn_MN translation to development machine. Can anyone tell me how to build the wheel from this language pack? (I am newbie sorry for such primitive question) thanks.
(env) [indico@localhost src]$ ./bin/maintenance/build-wheel.py indico
Error: working tree is not clean
indico/translations/mn_MN/LC_MESSAGES/messages.po | 6 ++±–
1 file changed, 3 insertions(+), 3 deletions(-)(env) [indico@localhost src]$
you should either commit all changes or pass --ignore-unclean
as an argument to the script.