Popularity
1.3
Growing
Activity
4.5
-
0
2
1
Monthly Downloads: 5
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Text
localize alternatives and similar packages
Based on the "Text" category.
Alternatively, view localize alternatives based on common mentions on social networks and blogs.
-
skylighting
A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions -
double-conversion
A fast Haskell library for converting between double precision floating point numbers and text strings. It is implemented as a binding to the V8-derived C++ double-conversion library.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of localize or a related project?
README
localize README
This package is more or less fully functional translation framework, based on haskell-gettext package. The key features are:
- Convinient functions for translation.
- Full support of gettext features, such as message contexts and plural forms.
- It is possible to detect language to use by process locale. But it is not
necessary, you for example may want to use
Accept-Language
HTTP header instead. - Easy integration with custom monadic stacks by implementing instance of
Localized
type class. - There are two simple implementations of
Localized
type class, for IO and StateT-based monad transformer. Being mostly examples, these implementations can be useful in relatively simple applications. - Utility functions to locate catalog files by specified rules. Example rules for locating catalog files under source directory and for locating them under usual Linux locations are provided.
- Integration with text-format-heavy package. It may be more convinient
than use of some other formatting libraries (
printf
, for example), since it supports named variable placeholders, much easier for translators to understand.
Please refer to Haddock documentation and to examples in examples/
directory.