Repository: nuxt-modules/i18n

Issue #690: The more translations (routes) the lower performance
Created: 2020-04-29T22:09:33Z
Version
nuxt-i18n: ^6.10.1 (latest)
nuxt: ^2.0.0 (latest)
Reproduction Link
https://github.com/hoiheart/nuxt-issue-demo/tree/i18n-performance
Steps to reproduce
When the TPS is measured under the same conditions,

with i18n
increase page count
increase message objects

What is Expected?
The request throughput must be similar before and after the module is used. (639 TPS)
What is actually happening?
When the TPS is measured under the same conditions,

Less TPS with i18n (583 TPS)
Less TPS depending on page count (568 TPS)
More message objects significantly reduce TPS (258 TPS)

Since it's a test on a personal PC, the TPS figure doesn't mean much.
But the decline is significant.
If you have any problems with my setup, please give me some advice

Duplicate issue #1165: The module increasing TBT. Need help
Created: 2021-05-09T16:35:54Z
I made an app with up to 17 languages, this is causing an issue with TBT(Total Blocking Time) [Which causing a lower score on pageSpeed].
nuxt.config
modules: [
   "@nuxtjs/axios",
      [
     "nuxt-i18n",
     {
       detectBrowserLanguage: {
         useCookie: true,
         alwaysRedirect: true
       }
     }
   ]
 ],

i18n: {
   seo: true,
   strategy: "prefix_except_default",
   locales: [
     {
       code: "es",
       iso: "es",
       file: "es.js",
       name: "Español",
     },
     {
       code: "fr",
       iso: "fr-FR",
       file: "fr.js",
       name: "Français"
     },
     {
       code: "cn",
       iso: "zh-CN",
       file: "cn.js",
       name: "中文(简体)"
     },
     {
       code: "de",
       iso: "de-DEU",
       file: "de.js",
       name: "Deutsch"
     },
     {
       code: "br",
       iso: "pt-BR",
       file: "br.js",
       name: "Português"
     },
     {
       code: "id",
       iso: "id",
       file: "id.js",
       name: "Indonesia"
     },
     {
       code: "in",
       iso: "hi",
       file: "in.js",
       name: "हिन्दी"
     },
     {
       code: "it",
       iso: "it-IT",
       file: "it.js",
       name: "Italiano"
     },
     {
       code: "jp",
       iso: "ja-JP",
       file: "jp.js",
       name: "日本語"
     },
     {
       code: "tw",
       iso: "zh-TW",
       file: "tw.js",
       name: "中文(繁體)"
     },
     {
       code: "kr",
       iso: "ko-KR",
       file: "kr.js",
       name: "한국어"
     },
     {
       code: "nl",
       iso: "nl",
       file: "nl.js",
       name: "Nederlands"
     },
     {
       code: "pl",
       iso: "pl",
       file: "pl.js",
       name: "Polski"
     },
     {
       code: "ru",
       iso: "ru-RU",
       file: "ru.js",
       name: "Pусский"
     },
     {
       code: "tr",
       iso: "tr-TR",
       file: "ru.js",
       name: "Türkiye"
     },
     {
       code: "vn",
       iso: "vi-VN",
       file: "vn.js",
       name: "Tiếng Việt"
     },

     {
       code: "en",
       iso: "en",
       file: "en.js",
       name: "English",
       isCatchallLocale: true,
     }
   ],
   baseUrl: "https://www.apkdojo.com",
   lazy: true,
   langDir: "lang/",
   defaultLocale: "en",
   vueI18n: {
     fallbackLocale: "en"
   }
 },

Any solution to this, which can help me to reduce TBT?
Need a faster method to use i18n, please help.

Closing comment (2021-05-12T18:10:58Z): Closing as duplicate of #690