6 releases

Uses new Rust 2024

0.0.6 Apr 29, 2025
0.0.5 Apr 29, 2025

#57 in Accessibility

Download history 174/week @ 2025-03-28 208/week @ 2025-04-04 187/week @ 2025-04-11 266/week @ 2025-04-18 430/week @ 2025-04-25 283/week @ 2025-05-02

1,209 downloads per month

GPL-3.0-or-later

43KB
677 lines

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.

📃 License

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.

Dependencies

~4–34MB
~602K SLoC