Type Safe Translations
YAML8n creates type safe translations for your app.
Categories:
YAML8n generates type safe translations. No more maps or strings–use real variables and real functions to ensure your translations exist and are valid!
// Package yaml8n contains generated translations.
// Code generated by YAML8n; DO NOT EDIT.
//nolint:all
package yaml8n
import "strings"
// ISO639Code is used to lookup translations.
type ISO639Code string
// Translation contains translations for ISO639Codes.
type Translation map[ISO639Code]string
// Translate returns the translation for an ISO639Code.
func (t Translation) Translate(c ISO639Code) string {
code := strings.Split(string(c), "-")[0]
if s, ok := t[ISO639Code(code)]; ok {
return s
}
return t["en"]
}
// EmailDailyAgendaHeader contains Translations.
var EmailDailyAgendaHeader = Translation{
"ar": `فيما يلي ملخص لجدول أعمالك اليومي`,
"de": `Hier finden Sie eine Zusammenfassung Ihrer täglichen Agenda`,
"en": `Here's a summary of your daily agenda`,
"es": `Aquí tienes un resumen de tu agenda diaria`,
"fr": `Voici un résumé de votre agenda quotidien`,
"hi": `यहां आपके दैनिक एजेंडे का सारांश दिया गया है`,
"nl": `Hier is een samenvatting van uw dagelijkse agenda`,
"zh": `这是您每日日程的摘要`,
}
// EmailDailyAgendaViewCalendar contains Translations.
var EmailDailyAgendaViewCalendar = Translation{
"ar": `عرض التقويم الخاص بك`,
"de": `Sehen Sie sich Ihren Kalender an`,
"en": `View your calendar`,
"es": `ver tu calendario`,
"fr": `Afficher votre calendrier`,
"hi": `अपना कैलेंडर देखें`,
"nl": `Bekijk je agenda`,
"zh": `查看您的日历`,
}