translate

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

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 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