lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Add Svelte Integration Guide for Lingo.dev CLI and SDK

Open theDevSoham opened this issue 2 months ago • 4 comments

This PR introduces a comprehensive guide for integrating Lingo.dev with Svelte and SvelteKit projects. It covers both static and dynamic translation workflows using the Lingo.dev CLI and SDK.

This PR fixes issue #1338

Changes Included:

  • Added a new Markdown guide: Svelte AI Translation with Lingo.dev

  • Overview of Svelte framework and Lingo.dev platform

  • Step-by-step instructions for:

    • Installing Svelte or SvelteKit
    • Creating static content for translation
    • Setting up Lingo.dev CLI for static translations
    • Configuring Lingo.dev SDK for dynamic, real-time translations
  • Example code for consuming translations in Svelte components

  • Instructions for toggling languages and handling browser locale

  • Backend example for using Lingo.dev SDK safely to avoid CORS issues

References:

theDevSoham avatar Nov 03 '25 12:11 theDevSoham

Hi 👋

  1. Please ensure that the guide focuses entirely on Lingo.dev CLI.
  2. Confirm that you've manually followed the instructions of the guide and verified that they're working.

Thanks.

😄

davidturnbull avatar Nov 03 '25 17:11 davidturnbull

Hey @davidturnbull , I've removed the sdk specific setup integration docs and tested them on my local. You can check it out the app I used to test the integration here. Please let me know your feedback

theDevSoham avatar Nov 03 '25 20:11 theDevSoham

Hey @davidturnbull @sumitsaurabh927 guys did you get some time to check the PR? I'd love to get a feedback from you guys and if any change required, would do the same.

theDevSoham avatar Nov 04 '25 19:11 theDevSoham

Hey @theDevSoham give us some time please.

Also, have you joined our Discord? I'd love to go over something with you. Can you please DM me there?

sumitsaurabh927 avatar Nov 04 '25 22:11 sumitsaurabh927

Hey @sumitsaurabh927 , apologies for the late reply. I've already joined and pinged you on dm. Please check

theDevSoham avatar Nov 07 '25 06:11 theDevSoham

@sumitsaurabh927 @maxprilutskiy I've updated the PR accordingly as the copilot suggestions. Please do check

theDevSoham avatar Nov 14 '25 13:11 theDevSoham