Skip to content

feat(templates): show store templates by language - #1758

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/template-store-languages
Nov 20, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/template-store-languages

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Admins can tag each store template with one or more languages. No language means it shows for everyone.
  • The store and the home Templates tab start on the visitor's language: their templates on top, other languages below a divider. Vietnamese visitors only see Vietnamese ones, and others don't see Vietnamese ones in this view.
  • "All languages" shows every template, Vietnamese included.
  • Templates tagged with the chosen language come before untagged ones.
  • The admin table can select several templates to set their categories or languages, or remove them, all at once.
  • The public API returns each template's languages and can filter by one.
  • New column on store listings (migration included).

Test plan

  • Unit tests for the language rule, filters, store page, admin actions and the public API
  • Database tests for languages, bulk edit and bulk remove (all or nothing per store)
  • Checked in the browser: admin edit and bulk edit, store in Vietnamese, English and Danish, "All languages", home Templates tab
  • pnpm lint, type checks for the touched packages
  • Review and apply the migration before deploying

@github-actions github-actions Bot added the feature New feature or request label Nov 20, 2026
@viethung0o0
viethung0o0 force-pushed the feat/template-store-languages branch from 89bcc9e to fc0948a Compare November 20, 2026 13:22
Admins tag store templates with languages and can edit or remove several at once. The store starts on the visitor's language and can show every language.
@viethung0o0
viethung0o0 force-pushed the feat/template-store-languages branch from fc0948a to 6cbfd3b Compare November 20, 2026 13:34
@viethung0o0
viethung0o0 marked this pull request as ready for review November 20, 2026 14:52
@viethung0o0
viethung0o0 merged commit dfeb3ab into main Nov 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants