i18n

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitI18n

func InitI18n()

func Translate

func Translate(lang string, key Key) string

func TranslateAlarm

func TranslateAlarm(lang string, alarmType alarm.Type) string

Types

type Key

type Key string
const (
	WALowBattery     Key = "whatsapp_low_battery"
	WALowLinkQuality Key = "whatsapp_low_link_quality"

	AlarmNone       Key = "alarm_none"
	AlarmEntryDelay Key = "alarm_entry_delay"
	AlarmBurglar    Key = "alarm_burglar"
	AlarmPanic      Key = "alarm_panic"
	AlarmFire       Key = "alarm_fire"
	AlarmTamper     Key = "alarm_tamper"
	AlarmTamperPin  Key = "alarm_tamper_pin"
)

Jump to

Keyboard shortcuts

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