yarn i18next 27.2.10
v27.2.10

57 minutes ago
  • fix: a formatter option that is empty or only whitespace in quotes stays a string instead of becoming NaN: {{name, join(separator: ' ')}} passes ' ' to the formatter, so a custom join writes "Anna Smith" instead of "AnnaNaNSmith". Thanks @arba-octo (#2485)
  • perf: t() runs the natural-language key check only for a key that contains the namespace separator, instead of twice on every call. With the default separators t() is about 30% faster; the results do not change. Thanks @ximex (#2486)
  • perf: without debug, t() looks a missing key up once instead of twice. The second lookup only fed the debug warning about flat JSON, so output and logs do not change. Thanks @ximex (#2487)

Don't miss a new i18next release

NewReleases is sending notifications on new releases.