mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
updated translations
This commit is contained in:
parent
5469cb3ea6
commit
a87eb17b89
@ -15,7 +15,7 @@
|
|||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview --host",
|
"preview": "astro preview --host",
|
||||||
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json}\"",
|
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,mdx}\"",
|
||||||
"lint": "eslint '**/*.{js,mjs,ts,tsx}'"
|
"lint": "eslint '**/*.{js,mjs,ts,tsx}'"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
import { UTTERANCES_CONFIG } from "@root/config";
|
|
||||||
import UIString from "../UIString";
|
import UIString from "../UIString";
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -8,21 +7,22 @@ import UIString from "../UIString";
|
|||||||
<div id="comments"></div>
|
<div id="comments"></div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script define:vars={{ UTTERANCES_CONFIG }}>
|
<script>
|
||||||
const $commentsWrapper = document.getElementById("comments");
|
const $commentsWrapper = document.getElementById("comments");
|
||||||
const $commentsScript = document.createElement("script");
|
const $commentsScript = document.createElement("script");
|
||||||
|
|
||||||
$commentsScript.async = true;
|
$commentsScript.async = true;
|
||||||
$commentsScript.src = "https://utteranc.es/client.js";
|
$commentsScript.src = "https://utteranc.es/client.js";
|
||||||
$commentsScript.setAttribute("repo", UTTERANCES_CONFIG.repo);
|
$commentsScript.setAttribute("repo", "sergeyyarkov/comments");
|
||||||
$commentsScript.setAttribute("issue-term", UTTERANCES_CONFIG.issueTerm);
|
$commentsScript.setAttribute("issue-term", "title");
|
||||||
|
$commentsScript.setAttribute("label", "Comment");
|
||||||
$commentsScript.setAttribute("id", "utterances");
|
$commentsScript.setAttribute("id", "utterances");
|
||||||
$commentsScript.setAttribute("crossorigin", "anonymous");
|
$commentsScript.setAttribute("crossorigin", "anonymous");
|
||||||
|
|
||||||
if (window.theme) {
|
if (window.theme) {
|
||||||
$commentsScript.setAttribute("theme", theme === "dark" ? "dark-blue" : "github-light");
|
$commentsScript.setAttribute("theme", theme === "dark" ? "dark-blue" : "github-light");
|
||||||
} else {
|
} else {
|
||||||
$commentsScript.setAttribute("theme", UTTERANCES_CONFIG.theme);
|
$commentsScript.setAttribute("theme", "github-light");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($commentsWrapper) $commentsWrapper.appendChild($commentsScript);
|
if ($commentsWrapper) $commentsWrapper.appendChild($commentsScript);
|
||||||
|
|||||||
@ -39,7 +39,7 @@ const { title, coverImage, tags, author, published_at } = data;
|
|||||||
coverImage && (
|
coverImage && (
|
||||||
<div>
|
<div>
|
||||||
<figure>
|
<figure>
|
||||||
{coverImage && <img src={coverImage} width="700" height="400" alt={title} />}
|
{coverImage && <img itemprop="image" src={coverImage} width="700" height="400" alt={title} />}
|
||||||
{/* Render remote or local image */}
|
{/* Render remote or local image */}
|
||||||
{/* utils.isURL(coverImage) ? (
|
{/* utils.isURL(coverImage) ? (
|
||||||
<Image itemprop="image" src={coverImage} width={700} height={400} aspectRatio={"16:9"} format={"webp"} alt={data.title} />
|
<Image itemprop="image" src={coverImage} width={700} height={400} aspectRatio={"16:9"} format={"webp"} alt={data.title} />
|
||||||
|
|||||||
@ -26,6 +26,7 @@ const { title = SITE_METADATA.title, description, canonicalUrl } = Astro.props a
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta name="title" content={title} />
|
<meta name="title" content={title} />
|
||||||
|
<meta name="generator" content={Astro.generator} />
|
||||||
<meta name="description" content={description || t("site.description")} />
|
<meta name="description" content={description || t("site.description")} />
|
||||||
<meta name="theme-color" content={SITE_METADATA.themeColor} />
|
<meta name="theme-color" content={SITE_METADATA.themeColor} />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
header {
|
header {
|
||||||
& :global(p) {
|
& :global(p) {
|
||||||
font-size: var(--font-size-lg);
|
font-size: var(--font-size-lg);
|
||||||
max-width: 570px;
|
max-width: 520px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,13 +3,6 @@ export const DEFAULT_LANGUAGE: LanguageKeys = "ru";
|
|||||||
/* Show banner about website development */
|
/* Show banner about website development */
|
||||||
export const IS_SITE_UNDER_CONSTRUCTION = true;
|
export const IS_SITE_UNDER_CONSTRUCTION = true;
|
||||||
|
|
||||||
export const UTTERANCES_CONFIG: UtterancesConfigType = {
|
|
||||||
repo: "sergeyyarkov/comments",
|
|
||||||
issueTerm: "title",
|
|
||||||
label: "Comments",
|
|
||||||
theme: "github-light",
|
|
||||||
};
|
|
||||||
|
|
||||||
export const SITE_METADATA: SiteMetadataType = {
|
export const SITE_METADATA: SiteMetadataType = {
|
||||||
title: "Sergey Yarkov",
|
title: "Sergey Yarkov",
|
||||||
name: "yarkov.tech",
|
name: "yarkov.tech",
|
||||||
@ -32,8 +25,8 @@ export const SITE_METADATA: SiteMetadataType = {
|
|||||||
name: "yarkov.tech",
|
name: "yarkov.tech",
|
||||||
year: "2022",
|
year: "2022",
|
||||||
description: {
|
description: {
|
||||||
ru: "Мой персональный веб-сайт где находятся информация обо мне и список различных статей, туториалов...",
|
ru: "Мой персональный веб-сайт где находятся информация обо мне и список различных статей и туториалов...",
|
||||||
en: "My personal website where you can find information about me and a list of various articles, tutorials...",
|
en: "My personal website where you can find information about me and a list of various articles and tutorials...",
|
||||||
},
|
},
|
||||||
sourceUrl: "https://github.com/sergeyyarkov/yarkov.tech",
|
sourceUrl: "https://github.com/sergeyyarkov/yarkov.tech",
|
||||||
demoUrl: "https://yarkov.tech",
|
demoUrl: "https://yarkov.tech",
|
||||||
@ -48,7 +41,7 @@ export const SITE_METADATA: SiteMetadataType = {
|
|||||||
en: "Static website for publishing various articles, developed with Gatsby.js and NetlifyCMS",
|
en: "Static website for publishing various articles, developed with Gatsby.js and NetlifyCMS",
|
||||||
},
|
},
|
||||||
sourceUrl: "https://github.com/sergeyyarkov/devthread.ru",
|
sourceUrl: "https://github.com/sergeyyarkov/devthread.ru",
|
||||||
demoUrl: "https://devthread.netlify.app",
|
demoUrl: "https://devthread.yarkov.tech",
|
||||||
articleUrl: undefined,
|
articleUrl: undefined,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -60,7 +53,7 @@ export const SITE_METADATA: SiteMetadataType = {
|
|||||||
en: "Learning Management System (LMS) to publish your courses, lectures, lessons",
|
en: "Learning Management System (LMS) to publish your courses, lectures, lessons",
|
||||||
},
|
},
|
||||||
sourceUrl: "https://github.com/sergeyyarkov/educt",
|
sourceUrl: "https://github.com/sergeyyarkov/educt",
|
||||||
demoUrl: "https://client-educt-lms.netlify.app",
|
demoUrl: "https://educt.yarkov.tech",
|
||||||
articleUrl: undefined,
|
articleUrl: undefined,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
"site.title": "yarkov.tech",
|
"site.title": "yarkov.tech",
|
||||||
"site.description":
|
"site.description":
|
||||||
"Here I publish articles and tutorials on various IT topics, as well as talk about my projects that I have done over the past few years.",
|
"Here I publish articles and tutorials on various IT topics, and I also talk about my projects that I have done over the past few years.",
|
||||||
"site.underConstruction": "This web-site is under development...",
|
"site.underConstruction": "This web-site is under development...",
|
||||||
"articles.empty": "No articles found...",
|
"articles.empty": "No articles found...",
|
||||||
"articlePost.comments": "Comments",
|
"articlePost.comments": "Comments",
|
||||||
@ -13,18 +13,18 @@ export default {
|
|||||||
"pageTitle.contacts": "Contacts",
|
"pageTitle.contacts": "Contacts",
|
||||||
/* Page descriptions */
|
/* Page descriptions */
|
||||||
"pageDescription.articles": "Technical articles, tutorials and various reference materials related to IT topics can be found here.",
|
"pageDescription.articles": "Technical articles, tutorials and various reference materials related to IT topics can be found here.",
|
||||||
"pageDescription.projects": "A few of my main projects that have been developed and made available to the public.",
|
"pageDescription.projects": "A few of my main projects that have been developed and published in open access.",
|
||||||
"pageDescription.contacts": "Use the feedback form or write to me on social networks.",
|
"pageDescription.contacts": "Use the feedback form or write to me on social networks.",
|
||||||
/* Navigation */
|
/* Navigation */
|
||||||
"navigation.articles": "Articles",
|
"navigation.articles": "Articles",
|
||||||
"navigation.projects": "Projects",
|
"navigation.projects": "Projects",
|
||||||
"navigation.about": "About",
|
"navigation.about": "About me",
|
||||||
"navigation.contacts": "Contacts",
|
"navigation.contacts": "Contacts",
|
||||||
/* Splash page */
|
/* Home page */
|
||||||
"splash.headline": "Hello, I'am Sergey",
|
"splash.headline": "Hello, I'am Sergey",
|
||||||
"splash.subheadline": "Fullstack web-developer & freelancer",
|
"splash.subheadline": "Fullstack web-developer & freelancer",
|
||||||
"splash.description":
|
"splash.description":
|
||||||
"I develop websites and web applications of varying complexity, as well as publish various articles and tutorials on various IT topics.",
|
"I develop websites and web applications of varying complexity, and also publish articles and tutorials on various IT topics.",
|
||||||
"splash.about": "about me",
|
"splash.about": "about me",
|
||||||
"splash.contact": "write me",
|
"splash.contact": "write me",
|
||||||
/* Recent articles */
|
/* Recent articles */
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
export default {
|
export default {
|
||||||
"site.title": "yarkov.tech",
|
"site.title": "yarkov.tech",
|
||||||
"site.description":
|
"site.description":
|
||||||
"Здесь я публикую статьи и туториалы на различные IT темы, а также рассказываю о своих проектах которые я сделал за последние несколько лет.",
|
"Здесь я публикую статьи и туториалы на разные IT темы, а также рассказываю о своих проектах которые я сделал за последние несколько лет.",
|
||||||
"site.underConstruction": "Этот веб-сайт находится в разработке...",
|
"site.underConstruction": "Этот веб-сайт находится в разработке...",
|
||||||
"articles.empty": "Не найдено ни одной статьи...",
|
"articles.empty": "Не найдено ни одной статьи...",
|
||||||
"articlePost.comments": "Комментарии",
|
"articlePost.comments": "Комментарии",
|
||||||
@ -20,11 +20,11 @@ export default {
|
|||||||
"navigation.projects": "Проекты",
|
"navigation.projects": "Проекты",
|
||||||
"navigation.about": "Обо мне",
|
"navigation.about": "Обо мне",
|
||||||
"navigation.contacts": "Контакты",
|
"navigation.contacts": "Контакты",
|
||||||
/* Splash page */
|
/* Home page */
|
||||||
"splash.headline": "Hello, I'am Sergey",
|
"splash.headline": "Hello, I'am Sergey",
|
||||||
"splash.subheadline": "Fullstack web-developer & freelancer",
|
"splash.subheadline": "Fullstack web-developer & freelancer",
|
||||||
"splash.description":
|
"splash.description":
|
||||||
"Я занимаюсь разработкой веб-сайтов и веб-приложений разной сложности, а также публикую различные статьи и туториалы на разные IT темы.",
|
"Я занимаюсь разработкой веб-сайтов и веб-приложений разной сложности, а также публикую статьи и туториалы на разные IT темы.",
|
||||||
"splash.about": "обо мне",
|
"splash.about": "обо мне",
|
||||||
"splash.contact": "написать мне",
|
"splash.contact": "написать мне",
|
||||||
/* Recent articles */
|
/* Recent articles */
|
||||||
|
|||||||
7
src/types/main.d.ts
vendored
7
src/types/main.d.ts
vendored
@ -15,13 +15,6 @@ declare global {
|
|||||||
type LanguageKeys = keyof typeof languages;
|
type LanguageKeys = keyof typeof languages;
|
||||||
type UIDictionaryKeys = keyof typeof uiKeys;
|
type UIDictionaryKeys = keyof typeof uiKeys;
|
||||||
|
|
||||||
type UtterancesConfigType = {
|
|
||||||
repo: string;
|
|
||||||
label?: string;
|
|
||||||
issueTerm: string;
|
|
||||||
theme: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
type SiteMetadataType = {
|
type SiteMetadataType = {
|
||||||
title: string;
|
title: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user