Skip to content

Contextual suggestion translations - #9410

Open
joshliebe wants to merge 13 commits into
developfrom
feature/josh/contextual-suggestions-l10n
Open

Contextual suggestion translations#9410
joshliebe wants to merge 13 commits into
developfrom
feature/josh/contextual-suggestions-l10n

Conversation

@joshliebe

@joshliebe joshliebe commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1217220744201649?focus=true
Tech Design URL (if applicable):
API Proposals URL(s) (if applicable):

Description

Steps to test this PR

Feature 1

  • [ ]
  • [ ]

UI changes

Before After
!(Upload before screenshot) (Upload after screenshot)

Note

Low Risk
User-facing copy and localization only; matching logic is unchanged aside from template substitution for localized strings.

Overview
Contextual Duck.ai suggestion chips and submitted prompt text now use Android string resources instead of English-only copy from PageSuggestionsCatalog.json. ContextualSuggestedPromptsProvider maps each catalog id to label/prompt resources and still runs template substitution for the user’s language.

ContextualSuggestionsMatcher.applyTemplate is now shared and also substitutes %1$s (used in localized translate prompts) in addition to {language}.

Localized strings for ~40 suggestion ids were added across default values and multiple locale strings-duckchat.xml files. Tests cover localized replacement, catalog fallback when no mapping exists, and the %1$s template path.

Reviewed by Cursor Bugbot for commit 0cab115. Bugbot is set up for automated code reviews on this repo. Configure here.

joshliebe commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joshliebe joshliebe mentioned this pull request Aug 5, 2026
6 tasks
Base automatically changed from feature/josh/contextual-suggestions to develop August 6, 2026 14:42
@joshliebe
joshliebe force-pushed the feature/josh/contextual-suggestions-l10n branch from 8eb47d6 to 6c21b23 Compare August 6, 2026 17:04
smartling and others added 4 commits August 6, 2026 13:21
Translate strings-duckchat to values-sk
Translate strings-duckchat to values-ro
Translate strings-duckchat to values-sl
Translate strings-duckchat to values-da
Translate strings-duckchat to values-de
Translate strings-duckchat to values-fi
Translate strings-duckchat to values-el
Translate strings-duckchat to values-et
Translate strings-duckchat to values-hu
Translate strings-duckchat to values-it
Translate strings-duckchat to values-cs
Translate strings-duckchat to values-fr
Translate strings-duckchat to values-ru
Translate strings-duckchat to values-sv
Translate strings-duckchat to values-bg
Translate strings-duckchat to values-tr
Translate strings-duckchat to values-lv
Translate strings-duckchat to values-lt
Translate strings-duckchat to values-nl
Translate strings-duckchat to values-nb
Translate strings-duckchat to values-pl
Translate strings-duckchat to values-pt
Translate strings-duckchat to values-hr
Translate strings-duckchat to values-es
Translate strings-duckchat to values-fr
Translate strings-duckchat to values-sk
Translate strings-duckchat to values-sv
Translate strings-duckchat to values-sl
Translate strings-duckchat to values-bg
Translate strings-duckchat to values-lv
Translate strings-duckchat to values-nb
Translate strings-duckchat to values-el
Translate strings-duckchat to values-pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant