2

Introduction - i18next documentation

 2 years ago
source link: https://www.i18next.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I18next is an internationalization-framework written in and for JavaScript. But it's much more than that.

i18next goes beyond just providing the standard i18n features such as (plurals, context, interpolation, format). It provides you with a complete solution to localize your product from web to mobile and desktop.

learn once - translate everywhere
assets%2F-L9iS6Wm2hynS5H9Gj7j%2F-MQr3qcVZNaGYv8LhexF%2F-MQr5pIQSi-6koShFqRA%2Fecosys.jpg?alt=media&token=2c7a655c-b856-41cf-81d2-d5d8f3a17afb

The i18next-community created integrations for frontend-frameworks such as React, AngularJS, Vue.js and many more.

But this is not where it ends. You can also use i18next with Node.js, PHP, iOS, Android and other platforms.

Learn more about supported frameworks

Here you'll find a simple tutorial on how to best use react-i18next. Some basics of i18next and some cool possibilities on how to optimize your localization workflow.​

Did you know internationalization is also important on your app's backend? In this tutorial blog post you can check out how this works.​​

Complete solution

Most frameworks leave it to you how translations are being loaded. You are responsible to detect the user language, to load the translations and push them into the framework.

i18next takes care of these issue for you. We provide you with plugins to:

  • detect the user language

  • load the translations

  • optionally cache the translations

  • extension, by using post-processing - e.g. to enable sprintf support

Learn more about plugins and utilities

Flexibility

i18next comes with strong defaults but it is flexible enough to fulfill custom needs.

  • Use moment.js over intl for date formatting?

  • Prefer different pre- and suffixes for interpolation?

  • Like gettext style keys better?

i18next has you covered!

Learn more about options

Scalability

The framework was built with scalability in mind. For smaller projects, having a single file with all the translation might work, but for larger projects this approach quickly breaks down. i18next gives you the option to separate translations into multiple files and to load them on demand.

Learn more about namespaces

Ecosystem

There are tons of modules built for and around i18next: from extracting translations from your code over bundling translations using webpack, to converting gettext, CSV and RESX to JSON.

Through locize.com, i18next even provides its own translation management tool: localization as a service.

assets%2F-L9iS6Wm2hynS5H9Gj7j%2F-MNXT2J7LNXnghTsRjyC%2F-MNXTKCqe21crt5iGnR3%2Fgeneral-locize-screen.png?alt=media&token=7bc0a6db-8a0a-4b75-b71a-06522015ffad

Learn more about the enterprise offering


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK