Skip to content

Commit

Permalink
feat: add ru translation for index and meta
Browse files Browse the repository at this point in the history
  • Loading branch information
unrealsolver committed Jan 6, 2024
1 parent 1c7d2bb commit 1ca2dc1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/translations/en/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import home from './home.json'
import materials from './materials.json'
import page from './page.json'

export default {
...home,
materials,
page,
}
6 changes: 6 additions & 0 deletions src/lib/translations/en/page.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"main": {
"title": "Beam Calculator",
"desc": "Static structural analysis of simple 2d frames based on Frame3DD"
}
}
2 changes: 2 additions & 0 deletions src/lib/translations/ru/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import home from './home.json'
import materials from './materials.json'
import page from './page.json'

export default {
...home,
materials,
page,
}
6 changes: 6 additions & 0 deletions src/lib/translations/ru/page.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"main": {
"title": "Beamcalc.net - Рассчет Балки на прогиб",
"desc": "Статический рассчет балки на прогиб с использование Frame3DD"
}
}
5 changes: 3 additions & 2 deletions src/routes/[[lang]]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import { t } from '$lib/translations'
import App from "./App.svelte"
import { browser } from "$app/environment";
import { goto } from "$app/navigation";
Expand All @@ -12,8 +13,8 @@
</script>

<svelte:head>
<title>Structural calculator</title>
<meta name="description" content="Static structural analysis of simple 2d frames based on Frame3DD" />
<title>{$t("page.main.title")}</title>
<meta name="description" content="{$t('page.main.desc')}" />
</svelte:head>

<App />

0 comments on commit 1ca2dc1

Please sign in to comment.