You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`iso` (required when using SEO features) - The ISO code used for SEO features and for matching browser locales when using [`detectBrowserLanguage`](/options/browser#detectbrowserlanguage) functionality. Should be in one of those formats:
- ISO 639-1 code (e.g. `'en'`)
- ISO 639-1 and ISO 3166-1 alpha-2 codes, separated by hyphen (e.g. `'en-US'`)
Describe the bug
The name iso here is not quite accurate and I think it can be changed to something like language. If it is too late to update it due to backward compatibility concerns, at least the description in the docs here can be updated.
I think iso certainly is a mistake from a specification standard. but, nuxt i18n v8 is RC, we cannot do breaking changes can be made.
I think it would be better to put the details in the documentation, and then add language or lang while keeping iso compatibility.
We can probably add language as a sort of 'alias' for iso after stable v8 release and fully deprecate/replace iso at some point for v9.
I remember having a hard time finding (or reading) docs describing the standards, using correct/common terminology and referencing the relevant information will definitely help me and other devs out!
Environment
Darwin
v18.15.0
-
3.9.0
-
unknown
-
-
-
-
Reproduction
i18n/docs/content/3.options/2.routing.md
Lines 40 to 42 in 6394a48
Describe the bug
The name
iso
here is not quite accurate and I think it can be changed to something likelanguage
. If it is too late to update it due to backward compatibility concerns, at least the description in the docs here can be updated.Both navigator.language(s) and Accept-Language refer to BCP 47 and the IANA Language Subtag Registry, which is based on underlying standards, including the various parts of ISO 639 (639-1, 639-2, 639-3, etc.), ISO 15924 script codes, ISO 3166, and UN M.49 region codes.
Additional context
Related information:
Logs
No response
The text was updated successfully, but these errors were encountered: