Crates.io | poly_l10n |
lib.rs | poly_l10n |
version | 0.0.6 |
created_at | 2025-04-01 16:42:31.640379+00 |
updated_at | 2025-04-29 16:43:17.639498+00 |
description | Handle locali(s|z)ations the correct way |
homepage | |
repository | https://github.com/madonuko/poly_l10n |
max_upload_size | |
id | 1615072 |
size | 84,946 |
poly_l10n
Handle locali(s|z)ations the correct way.
There are many i18n libraries out there that doesn't do this right: language fallbacks.
Unfortunately most projects (regardless of whether or not it's open source) do not support all
languages. This library fixes this for you with LocaleFallbackSolver
.
Additionally this library provides helper functions for figuring out the user language preference.
See system_want_langids
.
GPL-3.0-or-later
Copyright © 2025 madonuko <mado@fyralabs.com> <madonuko@outlook.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.