Make published content multilingual#71
Merged
Merged
Conversation
Load the site's configured default language (from config via the language resolver) and expose it as `default_language` alongside the items in the public GET /api/languages response. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Run `go generate` (swaggo/swag) so the generated spec reflects the multilingual feature: the new /languages and /dashboard/languages endpoints, language_code / available_languages / correlation_uuid / default_language_code fields, and the default_language entry now exposed by GET /api/languages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
f9b4f16 to
f6e57e3
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aff602e to
7b9d326
Compare
khanzadimahdi
added a commit
that referenced
this pull request
Jun 9, 2026
* multi-lang * update dependencies * Include default language in languages list response Load the site's configured default language (from config via the language resolver) and expose it as `default_language` alongside the items in the public GET /api/languages response. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Regenerate OpenAPI docs for multilingual content Run `go generate` (swaggo/swag) so the generated spec reflects the multilingual feature: the new /languages and /dashboard/languages endpoints, language_code / available_languages / correlation_uuid / default_language_code fields, and the default_language entry now exposed by GET /api/languages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * update tools * add lang to auth jwt * upgrade dependencies * fix websocket tests * fallback to first language in the list when the default language is not defined --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
khanzadimahdi
added a commit
that referenced
this pull request
Jun 9, 2026
* multi-lang * update dependencies * Include default language in languages list response Load the site's configured default language (from config via the language resolver) and expose it as `default_language` alongside the items in the public GET /api/languages response. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Regenerate OpenAPI docs for multilingual content Run `go generate` (swaggo/swag) so the generated spec reflects the multilingual feature: the new /languages and /dashboard/languages endpoints, language_code / available_languages / correlation_uuid / default_language_code fields, and the default_language entry now exposed by GET /api/languages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * update tools * add lang to auth jwt * upgrade dependencies * fix websocket tests * fallback to first language in the list when the default language is not defined --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
khanzadimahdi
added a commit
that referenced
this pull request
Jun 9, 2026
* multi-lang * update dependencies * Include default language in languages list response Load the site's configured default language (from config via the language resolver) and expose it as `default_language` alongside the items in the public GET /api/languages response. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Regenerate OpenAPI docs for multilingual content Run `go generate` (swaggo/swag) so the generated spec reflects the multilingual feature: the new /languages and /dashboard/languages endpoints, language_code / available_languages / correlation_uuid / default_language_code fields, and the default_language entry now exposed by GET /api/languages. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * update tools * add lang to auth jwt * upgrade dependencies * fix websocket tests * fallback to first language in the list when the default language is not defined --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Adds multilingual support to published content. Introduces a
languagedomain with full CRUD (dashboard + public APIs) and threads a language dimension through articles, home, hashtags, author articles, profile, config, and user data.Changes
languagedomain & repository — MongoDB + in-memory + mocks, with dashboard CRUD endpoints (create/update/delete/index/show) and a publiclanguage/indexendpoint.application/language/resolverto resolve the active language for a request.getArticle,getArticles,getArticlesByAuthor,getArticlesByHashtagand the dashboard create/update flows now carry a language code; responses and testdata updated accordingly.Test plan
go test ./...🤖 Generated with Claude Code