Type-safe internationalization (i18n) for Next.js
MIT License
Bot releases are hidden (Show)
Published by QuiiBz about 1 year ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.6.3...0.6.4
Published by QuiiBz about 1 year ago
fallbackLocale
by @QuiiBz in https://github.com/QuiiBz/next-international/pull/73
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.6.2...0.6.3
Published by QuiiBz over 1 year ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.6.1...0.6.2
Published by QuiiBz over 1 year ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.6.0...0.6.1
Published by QuiiBz over 1 year ago
You can now write locales using nested objects instead of the default dot notation. You can use the syntax you prefer without updating anything else:
// locales/en.ts
export default {
hello: 'Hello',
hello: {
world: 'Hello world!',
nested: {
translations: 'Translations'
}
}
} as const
It's the equivalent of the following:
export default {
'hello': 'Hello',
'hello.world': 'Hello world!',
'hello.nested.translations': 'Translations'
} as const
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.5.3...0.6.0
Published by QuiiBz over 1 year ago
Fix the bundle that preserved JSX instead of transforming it with createElement
calls
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.5.2...0.5.3
Published by QuiiBz over 1 year ago
I18nProviderServer
has been removed because it is now useless. You can simply remove it from your layout, see the README for the updated documentation.
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.5.1...0.5.2
Published by QuiiBz over 1 year ago
getCurrentLocale
in Server Components by @QuiiBz in https://github.com/QuiiBz/next-international/pull/57
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.5.0...0.5.1
Published by QuiiBz over 1 year ago
This release implements initial support for the App Router of Next.js 13. These changes shouldn't impact existing applications using the library with the Pages Router.
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.4.1...0.5.0
Published by QuiiBz over 1 year ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.4.0...0.4.1
Published by QuiiBz over 1 year ago
This release contains several breaking changes, as we move closer to a v1:
createI18n<typeof Locale>()
doesn't require anymore a generic, you should now have createI18n()
useI18n
hook now only returns a t
function, instead of an object containing both t
and scopedT
functionsuseScopedI18n
hook replaces the old scopedT
function, and works similarlyAnd some new features:
useCurrentLocale
hook that is correctly typed and returns the current localeThe README has been updated to reflect those changes. Huge thanks to @baptisteArno and @mieszkosabo for landing these improvements!
workspace:*
protocol by @QuiiBz in https://github.com/QuiiBz/next-international/pull/49
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.3.6...0.4.0
Published by QuiiBz about 2 years ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.3.0...0.3.6
Published by QuiiBz about 2 years ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.2.0...0.3.0
Published by QuiiBz about 2 years ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.1.1...0.2.0
Published by QuiiBz about 2 years ago
Full Changelog: https://github.com/QuiiBz/next-international/compare/0.1.0...0.1.1
Published by QuiiBz about 2 years ago
Full Changelog: https://github.com/QuiiBz/next-international/commits/0.1.0