THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Validate locale codes shared by translators and filesystem loaders.
| Function | validate |
Validate a locale code and return its original spelling. |
| Constant | _LOCALE |
Accept alphanumeric locale segments separated by hyphens or underscores. |
Validate a locale code and return its original spelling.
| Parameters | |
locale:str | Locale code to validate without normalizing its case or separators. |
| Returns | |
str | The unchanged, validated locale code. |
| Raises | |
orionis.localization.InvalidLocaleException | If the locale is empty, malformed, or unsafe for path use. |
Accept alphanumeric locale segments separated by hyphens or underscores.
| Value |
|