1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- // This file is generated by the "kurzd generate-translations" command. DO NOT EDIT.
- package translations
- import (
- "github.com/nicksnyder/go-i18n/v2/i18n"
- "golang.org/x/text/language"
- )
- func init() {
- loadMessages = func(b *i18n.Bundle) error {
- // These are the messages extracted from all the messages.<lang>.yaml files.
- m := make(MessageMap)
- {{- range $tag, $messagesByTag := . }}
- m[language.Make("{{$tag}}")] = []*i18n.Message{
- {{- range $message := $messagesByTag }}
- {
- {{- if ne $message.ID "" }}
- ID: "{{$message.ID}}",{{ end }}
- {{- if ne $message.Hash "" }}
- Hash: "{{$message.Hash}}",{{end }}
- {{- if ne $message.Description "" }}
- Description: "{{$message.Description}}",{{ end }}
- {{- if ne $message.LeftDelim "" }}
- LeftDelim: "{{$message.LeftDelim}}",{{ end }}
- {{- if ne $message.RightDelim "" }}
- RightDelim: "{{$message.RightDelim}}",{{ end }}
- {{- if ne $message.Zero "" }}
- Zero: "{{$message.Zero}}",{{ end }}
- {{- if ne $message.One "" }}
- One: "{{$message.One}}",{{ end }}
- {{- if ne $message.Two "" }}
- Two: "{{$message.Two}}",{{ end }}
- {{- if ne $message.Few "" }}
- Few: "{{$message.Few}}",{{ end }}
- {{- if ne $message.Many "" }}
- Many: "{{$message.Many}}",{{ end }}
- {{- if ne $message.Other "" }}
- Other: "{{$message.Other}}",{{ end }}
- },{{ end }}
- }{{ end }}
- for tag, messagesByTag := range m {
- err := b.AddMessages(tag, messagesByTag...)
- if err != nil {
- b = &i18n.Bundle{}
- return err
- }
- }
- return nil
- }
- }
- /* vim: set tabstop=4 : */
|