Add Svelte Integration Guide for Lingo.dev CLI and SDK
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:
Hi 👋
- Please ensure that the guide focuses entirely on Lingo.dev CLI.
- Confirm that you've manually followed the instructions of the guide and verified that they're working.
Thanks.
😄
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
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.
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?
Hey @sumitsaurabh927 , apologies for the late reply. I've already joined and pinged you on dm. Please check
@sumitsaurabh927 @maxprilutskiy I've updated the PR accordingly as the copilot suggestions. Please do check