[PR #349] [MERGED] 🚀 Feature: Translation #857

Closed
opened 2025-10-07 00:23:33 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pocket-id/pocket-id/pull/349
Author: @jonasclaes
Created: 3/16/2025
Status: Merged
Merged: 3/20/2025
Merged by: @stonith404

Base: mainHead: main


📝 Commits (10+)

  • 3f92d37 chore: update frontend version to 0.40.1 in package-lock.json
  • a029e92 feat: add inlang configuration and support for multilingual messages
  • 431d2d3 feat: add VSCode extension recommendations for inlang
  • 0324ba6 fix: reorder plugins in Vite configuration for proper initialization
  • 7a0616b feat: add multilingual support with English and Dutch translations in header avatar
  • d813dbd feat: translate components
  • 6d6926c feat: translate utils
  • d4d94f5 feat: translate most routes except for admin
  • 44fe1de feat: translate api keys
  • 6c53572 feat: translate application configuration

📊 Changes

83 files changed (+1567 additions, -453 deletions)

View changed files

.vscode/extensions.json (+5 -0)
📝 backend/internal/dto/user_dto.go (+8 -6)
📝 backend/internal/model/user.go (+1 -0)
📝 backend/internal/service/user_service.go (+2 -0)
backend/resources/migrations/postgres/20250320171311_user_locale.down.sql (+1 -0)
backend/resources/migrations/postgres/20250320171311_user_locale.up.sql (+1 -0)
backend/resources/migrations/sqlite/20250320171311_user_locale.down.sql (+1 -0)
backend/resources/migrations/sqlite/20250320171311_user_locale.up.sql (+1 -0)
frontend/messages/en.json (+318 -0)
frontend/messages/nl.json (+313 -0)
📝 frontend/package-lock.json (+286 -2)
📝 frontend/package.json (+1 -0)
frontend/project.inlang/.gitignore (+1 -0)
frontend/project.inlang/project_id (+1 -0)
frontend/project.inlang/settings.json (+15 -0)
📝 frontend/src/app.html (+1 -1)
📝 frontend/src/hooks.server.ts (+14 -1)
📝 frontend/src/lib/components/advanced-table.svelte (+4 -3)
📝 frontend/src/lib/components/collapsible-card.svelte (+2 -1)
📝 frontend/src/lib/components/confirm-dialog/index.ts (+2 -1)

...and 63 more files

📄 Description

This PR will add translation support using Paraglide v2 (beta).

The order in which a first language is chosen is as follows: (configurable in vite.config)

  1. local storage
  2. cookie
  3. baseLocale (default locale set in project.inlang/settings.json, in this case, en)

I've currently added English and Dutch (I'm a native Dutch speaker)

Leaving this PR in draft untill I've got it translated. :D

Fixes: https://github.com/pocket-id/pocket-id/issues/174


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pocket-id/pocket-id/pull/349 **Author:** [@jonasclaes](https://github.com/jonasclaes) **Created:** 3/16/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@stonith404](https://github.com/stonith404) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`3f92d37`](https://github.com/pocket-id/pocket-id/commit/3f92d377755cdaaa13275b910ad0f200303c42db) chore: update frontend version to 0.40.1 in package-lock.json - [`a029e92`](https://github.com/pocket-id/pocket-id/commit/a029e92f773673285afa98d9a877150427075727) feat: add inlang configuration and support for multilingual messages - [`431d2d3`](https://github.com/pocket-id/pocket-id/commit/431d2d3f395dd58bf1bdc4116104e86844797a98) feat: add VSCode extension recommendations for inlang - [`0324ba6`](https://github.com/pocket-id/pocket-id/commit/0324ba6f516f07ce653296bacf0c1df95352980d) fix: reorder plugins in Vite configuration for proper initialization - [`7a0616b`](https://github.com/pocket-id/pocket-id/commit/7a0616ba1249959bf62fcd8872edcd8c961d64bb) feat: add multilingual support with English and Dutch translations in header avatar - [`d813dbd`](https://github.com/pocket-id/pocket-id/commit/d813dbd4e000b9a50c55ad4ce1f755500a762db6) feat: translate components - [`6d6926c`](https://github.com/pocket-id/pocket-id/commit/6d6926c0131402db9596740087b51e746b37284c) feat: translate utils - [`d4d94f5`](https://github.com/pocket-id/pocket-id/commit/d4d94f5f068d2fcf3c953e8634613e6991eb56a3) feat: translate most routes except for admin - [`44fe1de`](https://github.com/pocket-id/pocket-id/commit/44fe1dea4a08fbe61da86723be49e39364395848) feat: translate api keys - [`6c53572`](https://github.com/pocket-id/pocket-id/commit/6c53572e82dda26b812c4b32dd52e03467a68f77) feat: translate application configuration ### 📊 Changes **83 files changed** (+1567 additions, -453 deletions) <details> <summary>View changed files</summary> ➕ `.vscode/extensions.json` (+5 -0) 📝 `backend/internal/dto/user_dto.go` (+8 -6) 📝 `backend/internal/model/user.go` (+1 -0) 📝 `backend/internal/service/user_service.go` (+2 -0) ➕ `backend/resources/migrations/postgres/20250320171311_user_locale.down.sql` (+1 -0) ➕ `backend/resources/migrations/postgres/20250320171311_user_locale.up.sql` (+1 -0) ➕ `backend/resources/migrations/sqlite/20250320171311_user_locale.down.sql` (+1 -0) ➕ `backend/resources/migrations/sqlite/20250320171311_user_locale.up.sql` (+1 -0) ➕ `frontend/messages/en.json` (+318 -0) ➕ `frontend/messages/nl.json` (+313 -0) 📝 `frontend/package-lock.json` (+286 -2) 📝 `frontend/package.json` (+1 -0) ➕ `frontend/project.inlang/.gitignore` (+1 -0) ➕ `frontend/project.inlang/project_id` (+1 -0) ➕ `frontend/project.inlang/settings.json` (+15 -0) 📝 `frontend/src/app.html` (+1 -1) 📝 `frontend/src/hooks.server.ts` (+14 -1) 📝 `frontend/src/lib/components/advanced-table.svelte` (+4 -3) 📝 `frontend/src/lib/components/collapsible-card.svelte` (+2 -1) 📝 `frontend/src/lib/components/confirm-dialog/index.ts` (+2 -1) _...and 63 more files_ </details> ### 📄 Description This PR will add translation support using Paraglide v2 (beta). The order in which a first language is chosen is as follows: (configurable in vite.config) 1. local storage 2. cookie 3. baseLocale (default locale set in `project.inlang/settings.json`, in this case, `en`) I've currently added English and Dutch (I'm a native Dutch speaker) Leaving this PR in draft untill I've got it translated. :D Fixes: https://github.com/pocket-id/pocket-id/issues/174 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-07 00:23:34 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#857