vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.75k stars 6.33k forks source link

Convert translations from @vue/cli-ui to guijs #5211

Open Akryum opened 4 years ago

Akryum commented 4 years ago

TODO:

caugner commented 4 years ago
Akryum commented 4 years ago

Will guijs eventually be moved into the Vue organisation?

No plan currently.

Will the locales use the same file format (JSON)?

Yes! I'm still using vue-i18n.

Will the locales be loaded the same way (npm package via unpkg)?

Yes, unless there are better ways? Maybe we could download the npm package locally and update it automatically so that it works when you are on the plane 😸

caugner commented 4 years ago

@Akryum I have now:

  1. Added a guijs project on Transifex inside the vuejs organization,
  2. Added the frontend-core resource from here inside that project (and enabled Auto-Update),
  3. Added a guijs-locales repository on GitHub inside my namespace,
  4. Added a @guijs-locales-bot user on GitHub,
  5. Added a guijs-locales package on npm,
  6. Configured a daily Travis CI cronjob to: a. pull locales from Transifex, b. push them to the repository and c. publish a new version to npm once a new @guijs/frontend-core version has been released.

Note that:

Akryum commented 4 years ago

Awesome! 😻

caugner commented 4 years ago

@Akryum Looks like the cronjob is doing it's job well; it released guijs-locales@0.1.19 yesterday.

We have already got 9 languages so far (including English, some only partially translated): https://unpkg.com/guijs-locales/?meta