translators

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 740 Imported by: 0

README

Registry for all locale packages in https://github.com/go-playground/locales

Note that if you know which languages you need at build time, you should not use this project.

Documentation

Overview

Package wraps all translators in github.com/go-playground/locales. The translators are not created until asked for in Get.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrency added in v0.2.0

func GetCurrency(code string) currency.Type

GetCurrency gets the currency for the given ISO 4217 code, or -1 if not found.

func GetTranslator added in v0.2.0

func GetTranslator(locale string) locales.Translator

GetTranslator gets the Translator for the given locale, nil if not found.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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