Skip to content
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

RFC: Renovate the remote-loader #1551

Open
4 tasks
andrii-bodnar opened this issue Mar 22, 2023 · 6 comments
Open
4 tasks

RFC: Renovate the remote-loader #1551

andrii-bodnar opened this issue Mar 22, 2023 · 6 comments

Comments

@andrii-bodnar
Copy link
Contributor

andrii-bodnar commented Mar 22, 2023

@lingui/remote-loader is a package that allows loading and compiling message catalogs located somewhere remotely (for example, an external CDN endpoint).

For some reason, it was marked as private and the latest published version is 3.11.0.

Today, almost every Localization Management System has an Over-The-Air Content Delivery feature that allows translations to be distributed to a CDN (or other resources located on the web) and then applications can consume these translations directly from the remote endpoint. For example, this is how it works in Crowdin - Content Delivery.

In short, OTA Content Delivery allows new translations to be delivered without necessarily rebuilding or redeploying the application. So the Remote Loader would be a good complement to OTA technologies.

Possible steps to do:

  • Review the codebase, actualize it
  • Add docs for the package
  • Update and fix README.md
  • Make it public
@thekip
Copy link
Collaborator

thekip commented Mar 22, 2023

Currently, the only one problem here, it doesn't support any other formats except of minimal. To make it work with all formats, custom formatters should be integrated in this loader.

By the way, Pofile would be tricky to bundle for for the browser because it has require('fs'), one more point for adopting and maintaining https://github.com/thekip/pofile under lingui org

@andrii-bodnar
Copy link
Contributor Author

I wonder if this should be considered every time someone creates a custom formatter. What about other formatters? Are they compatible with this?

@thekip
Copy link
Collaborator

thekip commented Mar 27, 2023

Yes, it should be considered when someone creates a custom formatter. Formatters shouldn't have any browser-incompatibile dependencies. Other official lingui formatters are compatible with browser.

@andrii-bodnar
Copy link
Contributor Author

Are there any other currently supported pofile alternatives? Maybe it would be better to switch library

I've found https://www.npmjs.com/package/gettext-parser, but I'm not sure if it works in browsers

@andrii-bodnar andrii-bodnar changed the title RFC: Renovate the remote-loader (or deprecate) RFC: Renovate the remote-loader May 26, 2023
@andrii-bodnar
Copy link
Contributor Author

@thekip I just thought if Pofile is a blocker in the current case, we probably can adopt its fork under the Lingui organization

@andrii-bodnar
Copy link
Contributor Author

Now Crowdin can provide already compiled translations via OTA CDN - Lingui String Exporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants