Browse Source

Adding flags for better compatibility.

master
Ad5001 5 months ago
parent
commit
9f8a2d4de0
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
  1. 13
      data/flags.json
  2. 7
      i18n/en.yaml
  3. 2
      i18n/fr.yaml
  4. 22
      layouts/partials/flags.html

13
data/flags.json

@ -0,0 +1,13 @@
{
"all": "🌍",
"fr": "🇫🇷",
"en": "🇬🇧",
"de": "🇩🇪",
"es": "🇪🇸",
"it": "🇮🇹",
"no": "🇳🇴",
"fi": "🇫🇮",
"se": "🇸🇪",
"hu": "🇭🇺",
"pl": "🇵🇱"
}

7
i18n/en.yaml

@ -1,4 +1,5 @@
# Languages
language:
other: Language
fr:
@ -11,7 +12,7 @@ es:
other: Spanish
it:
other: Italian
no:
"no":
other: Norwegian
fi:
other: Finish
@ -23,7 +24,7 @@ pl:
other: Polish
all:
other: Without text
# Footer
poweredBy:
other: Powered by
@ -31,4 +32,4 @@ usingTheme:
other: Using
websiteSource:
other: Website source code

2
i18n/fr.yaml

@ -11,7 +11,7 @@ es:
other: Espagnol
it:
other: Italien
no:
"no":
other: Norvegien
fi:
other: Finnois

22
layouts/partials/flags.html

@ -0,0 +1,22 @@
<!--
Omegamma - Hugo theme for ad5001.eu and related websites
Copyright (C) 2021-2022 Ad5001 <mail@ad5001.eu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
{{ range . }}
<span class="icon-larger-text" alt="{{ i18n . }}" title="{{ i18n . }}">{{ index site.Data.flags . }}</span>
{{ end }}
Loading…
Cancel
Save