question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support of non-git based messages source

See original GitHub issue

Is your feature request related to a problem? Please describe.

In my project, I want to have the ability to host messages on an external server (Amazon S3 in my case) and fetch them on every page request, this way I would be able to update messages almost real-time without dependency on deploys. Also, I want to use git messages as a fallback (I’m doing it using deepmerge of git-based and cloud-based messages per locale)

Describe the solution you’d like

Since I already have some requests in nuxtServerInit, I want to have a request to the external server there, to parallel my requests for performance reasons. But as for now, overwrite messages using context.app.i18n.setLocaleMessage get overwritten on the client, noted here: https://github.com/nuxt-community/i18n-module/issues/831 (Solution with hosting messages in nuxtStore would fit)

Describe alternatives you’ve considered

I tried another way using lazy:true and having the same js file for all locales. In this file, I have a promise containing requests to the external server. Cons are:

  1. this requests can’t be parallel with nuxtServerInit
  2. these requests are sent again on the client

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:19

github_iconTop GitHub Comments

1reaction
coremyslocommented, Aug 5, 2020

Some managing translation services provide tools for in-context live translation edit. This is not my case, but just example of how this feature can be used https://docs.lokalise.com/en/articles/1592525-livejs-web-in-context-editor https://help.phrase.com/help/set-up-in-context-editor

Also developing some sort of cms to manage translations and change messages without reload could be an another case.

Both cases nuxtStore would solve.

0reactions
stale[bot]commented, Oct 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support of non-git based messages source #833 - GitHub
In my project, I want to have the ability to host messages on an external server (Amazon S3 in my case) and fetch...
Read more >
SPM support basic auth for non-git binary dependency hosts - #74 ...
SwiftPM supports two sources for binary artifacts: URL based: the artifact is delivered archived as a zip file from a web-server. private GitHub...
Read more >
Merge local non git work to remote git repository
When ready to add your updates to the repo, do a fetch of the remote server to your local server to pick up...
Read more >
Common questions from prospective customers
Common questions from prospective customers. This page lists common questions we hear from prospective customers who are considering Sourcegraph.
Read more >
Errors – Vercel Docs
Contact Support to see why your deployment was blocked and how to resolve it. ... is present in the source code or inside...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found