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

Create an RCL to replace direct access to langnames.json #1594

Open
PhotoNomad0 opened this issue Jun 13, 2023 · 1 comment
Open

Create an RCL to replace direct access to langnames.json #1594

PhotoNomad0 opened this issue Jun 13, 2023 · 1 comment

Comments

@PhotoNomad0
Copy link
Contributor

This is to address issue #1582

Features of the RCL:

  • will have a copy of the langnames.json compiled-in (in case we cannot fetch it over the internet)

  • will cache the last fetched copy of langnames.json

  • app will be able to over-ride the URL for langnames.json

  • it will be flexible enough to be used by all our apps.

  • when app requests the latest langnames, the rcl behavior will be:

    • it will attempt to fetch the latest langnames.json from the URL passed by app, or if not given it will fetch using the default URL
    • if that fails it will return the latest cached version from previous fetch.
    • if no previous fetch, it will return a copy of the langnames.json compiled in.
@PhotoNomad0 PhotoNomad0 transferred this issue from unfoldingWord/gateway-edit Jun 13, 2023
@birchamp
Copy link
Contributor

@PhotoNomad0 will this change fix all of our apps or is it specific to tCC?

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

No branches or pull requests

2 participants