Separation of translation file into several smaller ones. #1609

Closed
hj wants to merge 0 commits from gitlab-mr-iid-337 into develop
Member

Fixes #142

Adds a tiny CLI tool to check what strings are missing in given language compared to English (/src/i18n/compare.js) usage is within the script as well it prints it out when invoked without arguments.

Separated all the languages except for:

  • de
  • oc
  • pt
  • eo

Since they have MRs pending for them. I tried merging #1566 into this branch and it went without conflicts.

Fixes #142 Adds a tiny CLI tool to check what strings are missing in given language compared to English (`/src/i18n/compare.js`) usage is within the script as well it prints it out when invoked without arguments. ~~Separated all the languages except for:~~ * ~~de~~ * ~~oc~~ * ~~pt~~ * ~~eo~~ ~~Since they have MRs pending for them. I tried merging #1566 into this branch and it went without conflicts.~~
Member

i don't see any code that pulls these JSON files in. is that automatically handled by Vue or something?

i don't see any code that pulls these JSON files in. is that automatically handled by Vue or something?
Author
Member

It's in the messages.js, at the very end of it. File gets collapsed in diff view due to it being too damn big and too many changes in it.

#1609/diffs

Basically, instead of const de = {...}; object = { de }; export object it's object = { de: require('./de.json') }; export object

It's in the messages.js, at the very end of it. File gets collapsed in diff view due to it being too damn big and too many changes in it. https://git.pleroma.social/pleroma/pleroma-fe/pulls/1609/diffs?expanded=1#f117962fe72c4f5006d4171cb33667f96956b607_2044_498 Basically, instead of `const de = {...}; object = { de }; export object` it's `object = { de: require('./de.json') }; export object`
Author
Member

I've merged remaining languages MRs except for swissgerman which needs support from the translation framework or something i suppose (i have some ideas about that) and split those languages too, now messages.js is minimal.

I've merged remaining languages MRs except for swissgerman which needs support from the translation framework or something i suppose (i have some ideas about that) and split those languages too, now `messages.js` is minimal.
Author
Member

image

![image](/attachments/44604dd1-d366-4e36-9932-2d9007385447)
4.2 KiB

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pleroma/pleroma-fe!1609
No description provided.