fix some traslation message errors during build;
disable auto language recognition.
This commit is contained in:
4
.env
4
.env
@ -8,8 +8,8 @@ NEXTAUTH_SECRET=ed8a9681efc414df89dfd03cd188ed58
|
|||||||
|
|
||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
# mysql. ONLY THIS ENV is respected when generating/applying migrations in prisma
|
# mysql. ONLY THIS ENV is respected when generating/applying migrations in prisma
|
||||||
# DATABASE=mysql://cart:cartpw@localhost:3306/cart
|
DATABASE=mysql://cart:cartpw@localhost:3306/cart
|
||||||
DATABASE=mysql://cart:cartpw@192.168.0.10:3306/cart_dev
|
# DATABASE=mysql://cart:cartpw@192.168.0.10:3306/cart_dev
|
||||||
|
|
||||||
# // owner: dobromir.popov@gmail.com | Специално Свидетелстване София
|
# // owner: dobromir.popov@gmail.com | Специално Свидетелстване София
|
||||||
# // https://console.cloud.google.com/apis/credentials/oauthclient/926212607479-d3m8hm8f8esp3rf1639prskn445sa01v.apps.googleusercontent.com?project=grand-forge-108716
|
# // https://console.cloud.google.com/apis/credentials/oauthclient/926212607479-d3m8hm8f8esp3rf1639prskn445sa01v.apps.googleusercontent.com?project=grand-forge-108716
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
{
|
{
|
||||||
"common": {
|
"common": {
|
||||||
|
"appNameLong": "Специално свидетелстване на обществени места в София",
|
||||||
|
"contacts": "Контакти",
|
||||||
"greeting": "Здравей",
|
"greeting": "Здравей",
|
||||||
"farewell": "Довиждане",
|
"farewell": "Довиждане",
|
||||||
"changeTo": "Смени на",
|
"changeTo": "-",
|
||||||
"BG": "Български",
|
"BG": "Български",
|
||||||
"EN": "Английски",
|
"EN": "Английски",
|
||||||
"RU": "Руски",
|
"RU": "Руски",
|
||||||
@ -30,6 +32,5 @@
|
|||||||
"statistics": "Статистика",
|
"statistics": "Статистика",
|
||||||
"coverMeLogs": "Замествания",
|
"coverMeLogs": "Замествания",
|
||||||
"translations": "Преводи"
|
"translations": "Преводи"
|
||||||
},
|
}
|
||||||
"specialno-svidetelstvane-na-obshestveni-mesta-v-sofiya-kontakti": "Специално свидетелстване на обществени места в София - Контакти"
|
|
||||||
}
|
}
|
@ -5,6 +5,10 @@
|
|||||||
"changeTo": "Смени на",
|
"changeTo": "Смени на",
|
||||||
"BG": "[RU] Български",
|
"BG": "[RU] Български",
|
||||||
"EN": "[RU] Английски",
|
"EN": "[RU] Английски",
|
||||||
"RU": "[RU] Руски"
|
"RU": "[RU] Руски",
|
||||||
|
"login": "вход"
|
||||||
|
},
|
||||||
|
"menu": {
|
||||||
|
"dashboard": "Начало"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -50,8 +50,12 @@ module.exports = withPWA({
|
|||||||
|
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
i18n: { // using https://next-intl-docs.vercel.app/docs/getting-started/pages-router
|
i18n: {
|
||||||
|
// next-intl
|
||||||
|
// https://next-intl-docs.vercel.app/docs/usage/messages
|
||||||
|
// using https://next-intl-docs.vercel.app/docs/getting-started/pages-router
|
||||||
locales: ['bg', 'en', 'ru'],
|
locales: ['bg', 'en', 'ru'],
|
||||||
defaultLocale: 'bg',
|
defaultLocale: 'bg',
|
||||||
|
autoDetect: false,
|
||||||
},
|
},
|
||||||
})
|
})
|
@ -1,12 +1,14 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Layout from "../components/layout";
|
import Layout from "../components/layout";
|
||||||
import FeedbackForm from "../components/reports/FeedbackForm";
|
import FeedbackForm from "../components/reports/FeedbackForm";
|
||||||
|
import { useTranslations } from 'next-intl';
|
||||||
|
|
||||||
const ContactsPage = () => {
|
const ContactsPage = () => {
|
||||||
|
const t = useTranslations('common');
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<div className="mx-auto my-8 p-6 max-w-4xl bg-white rounded-lg shadow-md">
|
<div className="mx-auto my-8 p-6 max-w-4xl bg-white rounded-lg shadow-md">
|
||||||
<h1 className="text-2xl font-bold text-gray-800 mb-4">{t('specialno-svidetelstvane-na-obshestveni-mesta-v-sofiya-kontakti')}</h1>
|
<h1 className="text-2xl font-bold text-gray-800 mb-4">{t('appNameLong') - t('contacts')}</h1>
|
||||||
<ul className="list-disc pl-5">
|
<ul className="list-disc pl-5">
|
||||||
<li className="text-gray-700 mb-2">Янко Ванчев - <a href="tel:+359878224467" className="text-blue-500 hover:text-blue-600">+359 878 22 44 67</a></li>
|
<li className="text-gray-700 mb-2">Янко Ванчев - <a href="tel:+359878224467" className="text-blue-500 hover:text-blue-600">+359 878 22 44 67</a></li>
|
||||||
<li className="text-gray-700">Крейг Смит - <a href="tel:+359878994573" className="text-blue-500 hover:text-blue-600">+359 878 994 573</a></li>
|
<li className="text-gray-700">Крейг Смит - <a href="tel:+359878994573" className="text-blue-500 hover:text-blue-600">+359 878 994 573</a></li>
|
||||||
|
Reference in New Issue
Block a user