translate

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package translate defines the Translate type and its predefined values.

Translation behavior for element content and attributes. Controls whether automatic translation services should translate the element's text content.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Yes Enable translation of element content. Automatic translation services should
	// translate text content and translatable attributes when page is localized.
	Yes = Translate("yes")

	// No Disable translation of element content. Automatic translation services should
	// leave text content unchanged, preserving original language and formatting.
	No = Translate("no")
)

Variables for Translate values

Functions

This section is empty.

Types

type Translate

type Translate []byte

Translate is a typed value for the HTML translate attribute.

Translation behavior for element content and attributes. Controls whether automatic translation services should translate the element's text content.

func Custom

func Custom(value string) Translate

Custom allows setting a custom Translate value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

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