mirror of
https://github.com/He4eT/xecut-site.git
synced 2026-05-04 17:37:26 +00:00
translations: set up
This commit is contained in:
parent
12d4a814f8
commit
a66abd471e
7 changed files with 17 additions and 6 deletions
3
src/_data/config.mjs
Normal file
3
src/_data/config.mjs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export default {
|
||||
langs: ['en', 'ru', 'sr'],
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
export default {
|
||||
title: 'Xecut',
|
||||
description: 'Hackspace in Belgrade.',
|
||||
}
|
||||
4
src/_data/translations/en.json
Normal file
4
src/_data/translations/en.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"title": "Xecut",
|
||||
"description": "Hackspace in Belgrade."
|
||||
}
|
||||
4
src/_data/translations/ru.json
Normal file
4
src/_data/translations/ru.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"title": "Xecut",
|
||||
"description": "Хакспейс в Белграде."
|
||||
}
|
||||
4
src/_data/translations/sr.json
Normal file
4
src/_data/translations/sr.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"title": "Xecut",
|
||||
"description": "Хакспејс у Београду."
|
||||
}
|
||||
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
<title>
|
||||
{% if title %} {{ title }} | {% endif %}
|
||||
{{ metadata.title }}
|
||||
{{ translations[page.lang]['title'] }}
|
||||
</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="{{ description or metadata.description }}">
|
||||
content="{{ description or translations[page.lang]['description'] }}">
|
||||
|
||||
<link
|
||||
rel="alternate"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue