Skip to content

Make translation opt-in - #78

Merged
srcrip merged 1 commit into
mainfrom
overhaul-translation
Jul 27, 2026
Merged

Make translation opt-in#78
srcrip merged 1 commit into
mainfrom
overhaul-translation

Conversation

@srcrip

@srcrip srcrip commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Resolves: #56

high level:

Limits LiveToast translation to its four built-in connection-notice strings, and only when an application configures gettext_backend. Messages and titles supplied through send_toast/3, put_toast/4, or custom connection-notification copy now pass through unchanged, so applications own their translation context and arbitrary toast content is never sent to Gettext.

Basically, I think it was a mistake in #13 to add these translation capabilities to the regular put_toast functions. it really should have only ever let you easier translate those built in connection lost strings. This is technically a breaking change, so sorry but its better this way.

@srcrip
srcrip marked this pull request as ready for review July 27, 2026 21:30
@srcrip
srcrip merged commit 9b7100c into main Jul 27, 2026
2 checks passed
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.

To avoid unrecoverable crashes, live_toast must offer a way to not translate.

1 participant