text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package i18n provides type-safe internationalization for Go.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package validator implements value validations for structs and individual fields based on tags. It can also handle Cross Field validation and even Cross Field Cross Struct validation for nested structs. Built In Validator A simple example usage: The error can be used like so Both StructValidationErrors and FieldValidationError implement the Error interface but it's intended use is for development + debugging, not a production error message. Why not a better error message? because this library intends for you to handle your own error messages Why should I handle my own errors? Many reasons, for us building an internationalized application I needed to know the field and what validation failed so that I could provide an error in the users specific language. The hierarchical error structure is hard to work with sometimes.. Agreed Flatten function to the rescue! Flatten will return a map of FieldValidationError's but the field name will be namespaced. Custom functions can be added Cross Field Validation can be implemented, for example Start & End Date range validation Multiple validators on a field will process in the order defined Bad Validator definitions are not handled by the library NOTE: Baked In Cross field validation only compares fields on the same struct, if cross field + cross struct validation is needed your own custom validator should be implemented. Here is a list of the current built in validators: Validator notes: This package panics when bad input is provided, this is by design, bad code like that should not make it to production.
Package i18n is for app Internationalization and Localization.
Package i18n is for app Internationalization and Localization.
Package i18n is for app Internationalization and Localization.
Package i18n provides an Internationalization and Localization middleware for Macaron applications.
Package i18n is for app Internationalization and Localization.
Package findingspec defines a domain-neutral model for representing a finding — anything that needs attention — across multiple problem domains: security, accessibility (a11y), internationalization (i18n), and quality engineering (qe).
Package i18n is a middleware that provides app Internationalization and Localization of Macaron.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package lisan provides compile-time-validated internationalization for Go.
Package idna provides an opt-in modifier that converts internationalized domain names to their ASCII form for normalize tags.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package i18n is for app Internationalization and Localization.
Package i18n is for app Internationalization and Localization.
Package i18n offers the following basic internationalization functionality:
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package i18n offers the following basic internationalization functionality: - message translation - with placeholder support - with plural support - number formatting - with currency support - with percentage support - locale-aware string sorting There's more we'd like to add in the future, including: - datetime formatting - ordinals - CLDR xml to yaml rules generation - data caching with size limitations - nestable message categories - small-string number formatting - 7m : about 7 million - 1.2k : about 1,200 - 253 : exactly 253 - 25b : about 25 billion - etc.
Package i18n is for app Internationalization and Localization.
Package i18n provides shared internationalization helpers.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package i18n provides a unified internationalization module supporting locale detection, translation lookup with fallback, locale-specific formatting, and pluggable machine-translation backends.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package i18n provides a security-hardened internationalization library for Go with locale fallback chains, embedded filesystem support, build-tag locale selection for WASM/TinyGo, and zero external dependencies.
Package i18n provides a lightweight, high-performance internationalization (i18n) solution for Go applications, inspired by the elegant developer experience of next-intl.
Package i18n is a middleware that provides app Internationalization and Localization of Macaron.
Package lang is a small, idiomatic internationalization (i18n) library.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package dispo provides helpers to build RFC-compliant Content-Disposition header values (RFC 6266) with support for internationalized filenames using RFC 5987 encoding.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package resource provides a ResourceBundle-inspired internationalization layer for Go.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
Package i18n provides lightweight internationalization for Go applications.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.
text is a repository of text-related packages related to internationalization (i18n) and localization (l10n), such as character encodings, text transformations, and locale-specific text handling.