Fix: correct <html lang> and localize the <head> description per locale
The root (main)/layout renders <html> ABOVE the [locale] segment, so next-intl's getLocale() returns the default locale there - emitting <html lang="en"> on every page regardless of UI language (e.g. /de) and a hardcoded English <head> description. Both are strong "translate this page" triggers in Chrome. proxy.ts already exposes the nonce to server components via the x-middleware-request-* mechanism; expose the request pathname the same way as x-pathname, and have the root layout derive the locale from it (falling back to getLocale() when the path has no locale segment) for both <html lang> and the localized meta_description (new key in all 17 locales; the English value is unchanged).
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimalistický webmailový klient využívající protokol JMAP",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "E-mail",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimalistisk webmail-klient, der bruger JMAP-protokollen",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "Email",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimalistischer Webmail-Client mit JMAP-Protokoll",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "E-Mail",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimalist webmail client using JMAP protocol",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "Email",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Cliente de correo web minimalista que usa el protocolo JMAP",
|
||||
"login": {
|
||||
"title": "Correo Web",
|
||||
"username_label": "Correo electrónico",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Client de messagerie web minimaliste utilisant le protocole JMAP",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "Email",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Client di posta web minimalista che utilizza il protocollo JMAP",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "Email",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "JMAPプロトコルを使用するミニマルなウェブメールクライアント",
|
||||
"login": {
|
||||
"title": "ウェブメール",
|
||||
"username_label": "メールアドレス",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "JMAP 프로토콜을 사용하는 미니멀한 웹메일 클라이언트",
|
||||
"login": {
|
||||
"title": "웹메일",
|
||||
"username_label": "이메일",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimālistisks tīmekļa pasta klients, kas izmanto JMAP protokolu",
|
||||
"login": {
|
||||
"title": "Tīmekļa pasts",
|
||||
"username_label": "E-pasta adrese",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimalistische webmailclient die het JMAP-protocol gebruikt",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "E-mail",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Minimalistyczny klient poczty internetowej wykorzystujący protokół JMAP",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "E-mail",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Cliente de webmail minimalista que usa o protocolo JMAP",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "E-mail",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Минималистичный веб-клиент электронной почты, использующий протокол JMAP",
|
||||
"login": {
|
||||
"title": "Веб-почта",
|
||||
"username_label": "Электронная почта",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "JMAP protokolünü kullanan minimalist web posta istemcisi",
|
||||
"login": {
|
||||
"title": "Webmail",
|
||||
"username_label": "E-posta",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "Мінімалістичний вебклієнт електронної пошти, що використовує протокол JMAP",
|
||||
"login": {
|
||||
"title": "Веб-пошта",
|
||||
"username_label": "Електронна пошта",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"meta_description": "使用 JMAP 协议的极简网页邮件客户端",
|
||||
"login": {
|
||||
"title": "网页邮箱",
|
||||
"username_label": "邮箱地址",
|
||||
|
||||
Reference in New Issue
Block a user