-
Notifications
You must be signed in to change notification settings - Fork 824
feat(community): Lingo #1761 community build demo apps integrations (yo-lingo) #1844
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
Open
ShuvoMondal
wants to merge
8
commits into
lingodotdev:main
Choose a base branch
from
ShuvoMondal:lingo-1761-community-build-demo-apps-integrations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat(community): Lingo #1761 community build demo apps integrations (yo-lingo) #1844
ShuvoMondal
wants to merge
8
commits into
lingodotdev:main
from
ShuvoMondal:lingo-1761-community-build-demo-apps-integrations
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…dling - Migrated manual state-based fetching to @tanstack/react-query's `useQuery` - Implemented a robust fallback system for both jokes and quotes - Added `FALLBACK_QUOTES` to ensure content availability during API outages - Encapsulated service logic within a centralized [fetchContent](cci:1://file:///mnt/Utility/lingo.dev/community/yo-lingo/src/routes/index.tsx:36:4-47:6) wrapper - Optimized [JokeCard](cci:1://file:///mnt/Utility/lingo.dev/community/yo-lingo/src/components/JokeCard.tsx:12:0-99:1) rendering to utilize query loading and refetching states - Cleaned up redundant `useState` and `useEffect` logic in the main layout
- Implement Lingo.dev SDK integration for real-time translation
- Add with eager translation strategy
- Introduce interactive language selector dropdown in [JokeCard](cci:1://file:///mnt/Utility/lingo.dev/community/yo-lingo/src/components/JokeCard.tsx:31:0-174:1)
- Add Hindi ('hi') to supported languages
- Update [manifest.json](cci:7://file:///mnt/Utility/lingo.dev/community/yo-lingo/public/manifest.json:0:0-0:0) with correct app name and theme settings
- Clean up by removing unused devtools
- Polish UI with Lucide icons and premium styling
…content - Implement automatic translation for jokes and quotes into 7 languages (es, fr, de, hi, ja, ru, zh) using Lingo.dev. - Add fallback jokes and quotes with error handling to ensure service availability. - Fix TypeScript unknown type assignment errors in fetch services. - Update Lingo service to support batch localization and return locale-keyed objects. - Configure server to use port 3001 to avoid conflicts and added watch script.
…e stats - Remove @lingo.dev/compiler and sdk from frontend - Implement local locale state management - Add usage stats service and endpoint in backend - Add real-time stats display in JokeCard - Enable CORS in server - Improve translation quality for author/category fields - Centralize API config with environment variables
…and docs - Remove @lingo.dev/compiler and sdk from frontend - Implement local locale state management in React - Add persistent usage stats service in backend and display in UI - Enable CORS and fix author translation quality in backend - Centralize API config with environment variables - Add detailed README documentation for both projects
- Migrate stats storage from local file to Neon Postgres - Fix async bug in stats endpoint (missing await) - Disable infinite caching in React app to force refresh on load - Automatically refetch stats in UI when new content is generated
- Transition environment variable access from to . - Add to devDependencies. - Append extensions to internal imports for ESM compatibility. - Update documentation with the missing environment variable.
Contributor
|
hi @ShuvoMondal your PR is missing changeset. Please add the changeset by following instructions here. Make sure you've joined our discord to see this message. If you haven't you need to:
Please also sign your commits Also, in the demo link, your backend is failing (see attached SS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Summary
Introduces Yo Lingo, a full-stack demo application showcasing high-performance, backend-driven multi-language translation using the Lingo.dev SDK.
Live Demo: https://yo-lingo.vercel.app/
Changes
@lingo.dev/sdkto translate dynamic content (jokes, quotes) on-the-fly into 7 different languages (ES, FR, DE, HI, JP, RU, ZH).Testing
Business logic tests cases:
Visuals
Required for UI/UX changes:
Checklist
Closes #1761