feat(app): template library with 100+ i18n templates, response language selector and extension fixes #5
Merged
Nyrok merged 5 commits intoNyrok:masterfrom Mar 13, 2026
Merged
Conversation
…e language selector
Owner
|
Amazing! |
Nyrok
reviewed
Mar 13, 2026
Owner
There was a problem hiding this comment.
To make template contribution easier, maybe we should move the templates in a specific folder, with a template per file.
With a convention on the template structure: It can be a .json file or something else.
To be discussed!
Owner
There was a problem hiding this comment.
However, it can be implemented later. I'm merging it.
Collaborator
Author
There was a problem hiding this comment.
think the best approach is to set up a database so that we can easily use it in the future
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
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
✨ Template Library (100+ templates) ─
🌍 Multilingual templates + response language selector
languageblock to the loaded template nodesLOCALE_TO_LANGmapping covers 16 languages (EN, FR, ES, DE, IT, PT, ZH, JA, KO, AR, RU, NL, PL, SV, TR, HI)en,fr,es,de,pt,ja,tr,zh,ar,ru) with the newlibraryi18n section🧱 Block pills redesign (Sidebar)
🧩 Extension fixes (to check if this was intentional or not)
FLOMPT_PLATFORM_INFOis re-sent every time the sidebar opens, so the correct AI tab (ChatGPT / Claude / Gemini) is pre-selectedDEV_MODEreset tofalsebefore commit (was lefttrueduring local development)Files changed
app/src/lib/templates.ts— new file, 100+ templates with i18n structureapp/src/components/TemplateLibrary.tsx— full rewrite with locale-aware display + language selectorapp/src/components/Sidebar.tsx— Templates button + block pill description redesignapp/src/App.tsx— library as modal overlay, removed library tabapp/src/store/flowStore.ts—Tabtype kept compatibleapp/src/i18n/en.json+fr.json—librarysection added (translated)app/src/i18n/*.json(×8) —librarysection added (English fallback)app/src/i18n/translations.ts—libraryinterface addedapp/src/styles.css— library overlay, template grid, language selector, block pill styles