i18n

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package i18n translates the short, fixed notification strings cuxdeck pushes to phones (Web Push and Telegram) into the language the user picked in the panel. Same approach as the web panel: the English text is the key, and a missing translation falls back to English, so nothing ever ships blank. Dynamic pieces (paths, seat names, durations, URLs, version numbers) are concatenated by the caller and pass through untranslated; only the fixed words/fragments live here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func T

func T(lang, s string) string

T returns the translation of English string s for lang, or s itself for English / an unknown language / a missing key.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL