locale

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SEPARATOR = "."

SEPARATOR is used to split the message into groups.

Variables

View Source
var (
	ErrWrapper   = "translation: %w"
	ErrBody      = errors.New("html body is empty")
	ErrJSONValid = errors.New("json struct is not valid")
)

Error messages.

Functions

func AddRoutes

func AddRoutes(r router.Manager) error

AddRoutes will add all routes for the translation controller.

Types

type Controller

type Controller struct {
	controller.Base
}

Controller struct.

func (*Controller) Translation

func (c *Controller) Translation()

Translation controller implements a CRUD for generating the translations. Translation manage reload will be called on CREATE,UPDATE and DELETE.

Directories

Path Synopsis
Package translation provides an i18n implementation for the back- and frontend.
Package translation provides an i18n implementation for the back- and frontend.
db
Package db provides a database translation provider.
Package db provides a database translation provider.

Jump to

Keyboard shortcuts

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