github aralroca/next-translate 0.18.0

3 years ago

In this release, there are two new things! 😊

  1. You can use i18n.js for the configuration file, apart from i18n.json. Both are supported now. (You should use module.exports on the .js extension)

  2. Now in the configuration you have one new property called logger to be able to capture the missing keys. This function is executed in both production and development. However, if you do not use this function by default the internal function logger that we have calls a console.warn only in development.

By the way, Next.js is now starting to support i18n. For version 9.5.7 of Next.js there will be the i18n routing part. This is very good news, and we'll probably start doing a little refactoring of what we have here. Things such as Link and Router may no longer make sense since exactly the same functionality will be in the Next.js core (replacing lang to locale). We'll see, for the moment it's experimental, but I think it's good to announce it.

In the future, when not only the i18n routing will be in Next.js, but also the part of loading the translations, we will most probably be able to remove the "build step".

FEATURES

BUGFIXES

Don't miss a new next-translate release

NewReleases is sending notifications on new releases.