Skip to content

Consider format-<lang> and format-<lang>-<variant> - #5236

Open
ritze wants to merge 1 commit into
Alexays:masterfrom
ritze:sway-language-format-lang-variant
Open

Consider format-<lang> and format-<lang>-<variant>#5236
ritze wants to merge 1 commit into
Alexays:masterfrom
ritze:sway-language-format-lang-variant

Conversation

@ritze

@ritze ritze commented Aug 5, 2026

Copy link
Copy Markdown

What does this PR do?
Like for hyprland/languages and niri/languages sway/languages can be configured for alternative languages and variant names:

Example:

"sway/language": {
	"format": "Lang: {}",
	"format-en": "AMERICA, HELL YEAH!",
	"format-tr": "As bayrakları"
}

This only works if format uses {}. I guess more work is required here, since all */languages plugins have different behavior. For the first approach I decided for the easiest solution. Maybe we should clarification the expected behavior and update the PR.

I also think that the code of all */languages modules can be merged to a common code base and only the glue code for each desktop environment can be separate.

Related issues
unknown

Checklist

  • Code is formatted with clang-format
  • Builds locally (ninja -C build)
  • Man page updated for any new/changed user-facing option (man/)
  • Tested against the affected module(s)

@ritze
ritze force-pushed the sway-language-format-lang-variant branch from d60575e to 710b8ad Compare August 5, 2026 14:18
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