updated translations

This commit is contained in:
Sergey Yarkov 2022-08-22 22:36:14 +03:00
parent 5469cb3ea6
commit a87eb17b89
10 changed files with 22 additions and 35 deletions

View File

@ -15,7 +15,7 @@
"start": "astro dev",
"build": "astro build",
"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}'"
},
"devDependencies": {

View File

@ -1,5 +1,4 @@
---
import { UTTERANCES_CONFIG } from "@root/config";
import UIString from "../UIString";
---
@ -8,21 +7,22 @@ import UIString from "../UIString";
<div id="comments"></div>
</footer>
<script define:vars={{ UTTERANCES_CONFIG }}>
<script>
const $commentsWrapper = document.getElementById("comments");
const $commentsScript = document.createElement("script");
$commentsScript.async = true;
$commentsScript.src = "https://utteranc.es/client.js";
$commentsScript.setAttribute("repo", UTTERANCES_CONFIG.repo);
$commentsScript.setAttribute("issue-term", UTTERANCES_CONFIG.issueTerm);
$commentsScript.setAttribute("repo", "sergeyyarkov/comments");
$commentsScript.setAttribute("issue-term", "title");
$commentsScript.setAttribute("label", "Comment");
$commentsScript.setAttribute("id", "utterances");
$commentsScript.setAttribute("crossorigin", "anonymous");
if (window.theme) {
$commentsScript.setAttribute("theme", theme === "dark" ? "dark-blue" : "github-light");
} else {
$commentsScript.setAttribute("theme", UTTERANCES_CONFIG.theme);
$commentsScript.setAttribute("theme", "github-light");
}
if ($commentsWrapper) $commentsWrapper.appendChild($commentsScript);

View File

@ -39,7 +39,7 @@ const { title, coverImage, tags, author, published_at } = data;
coverImage && (
<div>
<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 */}
{/* utils.isURL(coverImage) ? (
<Image itemprop="image" src={coverImage} width={700} height={400} aspectRatio={"16:9"} format={"webp"} alt={data.title} />

View File

@ -26,6 +26,7 @@ const { title = SITE_METADATA.title, description, canonicalUrl } = Astro.props a
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{title}</title>
<meta name="title" content={title} />
<meta name="generator" content={Astro.generator} />
<meta name="description" content={description || t("site.description")} />
<meta name="theme-color" content={SITE_METADATA.themeColor} />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />

View File

@ -6,7 +6,7 @@
header {
& :global(p) {
font-size: var(--font-size-lg);
max-width: 570px;
max-width: 520px;
line-height: 1.5;
}

View File

@ -3,13 +3,6 @@ export const DEFAULT_LANGUAGE: LanguageKeys = "ru";
/* Show banner about website development */
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 = {
title: "Sergey Yarkov",
name: "yarkov.tech",
@ -32,8 +25,8 @@ export const SITE_METADATA: SiteMetadataType = {
name: "yarkov.tech",
year: "2022",
description: {
ru: "Мой персональный веб-сайт где находятся информация обо мне и список различных статей, туториалов...",
en: "My personal website where you can find information about me and a list of various articles, tutorials...",
ru: "Мой персональный веб-сайт где находятся информация обо мне и список различных статей и туториалов...",
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",
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",
},
sourceUrl: "https://github.com/sergeyyarkov/devthread.ru",
demoUrl: "https://devthread.netlify.app",
demoUrl: "https://devthread.yarkov.tech",
articleUrl: undefined,
},
{
@ -60,7 +53,7 @@ export const SITE_METADATA: SiteMetadataType = {
en: "Learning Management System (LMS) to publish your courses, lectures, lessons",
},
sourceUrl: "https://github.com/sergeyyarkov/educt",
demoUrl: "https://client-educt-lms.netlify.app",
demoUrl: "https://educt.yarkov.tech",
articleUrl: undefined,
},
{

View File

@ -1,7 +1,7 @@
export default {
"site.title": "yarkov.tech",
"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...",
"articles.empty": "No articles found...",
"articlePost.comments": "Comments",
@ -13,18 +13,18 @@ export default {
"pageTitle.contacts": "Contacts",
/* Page descriptions */
"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.",
/* Navigation */
"navigation.articles": "Articles",
"navigation.projects": "Projects",
"navigation.about": "About",
"navigation.about": "About me",
"navigation.contacts": "Contacts",
/* Splash page */
/* Home page */
"splash.headline": "Hello, I'am Sergey",
"splash.subheadline": "Fullstack web-developer & freelancer",
"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.contact": "write me",
/* Recent articles */

View File

@ -1,7 +1,7 @@
export default {
"site.title": "yarkov.tech",
"site.description":
"Здесь я публикую статьи и туториалы на различные IT темы, а также рассказываю о своих проектах которые я сделал за последние несколько лет.",
"Здесь я публикую статьи и туториалы на разные IT темы, а также рассказываю о своих проектах которые я сделал за последние несколько лет.",
"site.underConstruction": "Этот веб-сайт находится в разработке...",
"articles.empty": "Не найдено ни одной статьи...",
"articlePost.comments": "Комментарии",
@ -20,11 +20,11 @@ export default {
"navigation.projects": "Проекты",
"navigation.about": "Обо мне",
"navigation.contacts": "Контакты",
/* Splash page */
/* Home page */
"splash.headline": "Hello, I'am Sergey",
"splash.subheadline": "Fullstack web-developer & freelancer",
"splash.description":
"Я занимаюсь разработкой веб-сайтов и веб-приложений разной сложности, а также публикую различные статьи и туториалы на разные IT темы.",
"Я занимаюсь разработкой веб-сайтов и веб-приложений разной сложности, а также публикую статьи и туториалы на разные IT темы.",
"splash.about": "обо мне",
"splash.contact": "написать мне",
/* Recent articles */

7
src/types/main.d.ts vendored
View File

@ -15,13 +15,6 @@ declare global {
type LanguageKeys = keyof typeof languages;
type UIDictionaryKeys = keyof typeof uiKeys;
type UtterancesConfigType = {
repo: string;
label?: string;
issueTerm: string;
theme: string;
};
type SiteMetadataType = {
title: string;
name: string;