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.

Multi-lingual Websites

See original GitHub issue

Hi! Are there best practices to make Sprig work well with multi-lingual sites? I might be missing a trick but it seems that the dynamic content (specifically a “search-as-you-type” widget) loads from the default (English) site even if you’re on the French site.

I think I could pass through a parameter of site ID to run the query on, but that wouldn’t solve any translation strings that use Twig’s |t filter.

Update: I think this might be that the sprig.include bit is translated but any sprig.request bits aren’t? I may be misdiagnosing this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
bencrokercommented, Aug 3, 2020

Great, coming in the next release.

0reactions
andrewfairliecommented, Aug 3, 2020

Yep that fixes it

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 examples of multilingual websites that did everything right ...
5 examples of multilingual websites that did everything right (and how they did it) · 1. Edgard & Cooper · 2. Bluetooth Special...
Read more >
6 Great Examples of Multilingual Websites | K International
we've trawled through the websites of leading international companies and picked out six of the best examples of multilingual websites.
Read more >
Working with multilingual websites | Google Search Central Blog
A multilingual website is any website that offers content in more than one language. Examples of multilingual websites might include a Canadian business ......
Read more >
Top 10 Best Practices for Multilingual Websites - Digital.gov
Top 10 Best Practices for Multilingual Websites · Language — Digital communications must address the users' language preference. · Culture · Access to...
Read more >
10 Multilingual Website Examples to Inspire You in 2022!
Need Inspiration? Explore These 10 Multilingual Website Examples · 1. Ikea · 2. Nike · 3. Apple · 4. Coca-Cola · 5. Jumia...
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