feat: language switcher
This commit is contained in:
parent
7cd1f00582
commit
7829bb2fdf
|
@ -17,7 +17,10 @@
|
||||||
"made": "Made with",
|
"made": "Made with",
|
||||||
"indonesia": "in Indonesia",
|
"indonesia": "in Indonesia",
|
||||||
"available": "This project is available on",
|
"available": "This project is available on",
|
||||||
"github": "Github"
|
"github": "Github",
|
||||||
|
"language": "Languages:",
|
||||||
|
"english": "English",
|
||||||
|
"indonesian": "Indonesian"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"more": {
|
"more": {
|
||||||
|
|
|
@ -17,7 +17,10 @@
|
||||||
"made": "Diciptakan dengan",
|
"made": "Diciptakan dengan",
|
||||||
"indonesia": "di Indonesia",
|
"indonesia": "di Indonesia",
|
||||||
"available": "Proyek ini tersedia di",
|
"available": "Proyek ini tersedia di",
|
||||||
"github": "Github"
|
"github": "Github",
|
||||||
|
"language": "Bahasa:",
|
||||||
|
"english": "Inggris",
|
||||||
|
"indonesian": "Indonesia"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"more": {
|
"more": {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '@fontsource/fira-mono';
|
import '@fontsource/fira-mono';
|
||||||
import '@fontsource/rubik';
|
import '@fontsource/rubik';
|
||||||
|
import { goto } from '$app/navigation'
|
||||||
import { _ } from 'svelte-i18n';
|
import { _ } from 'svelte-i18n';
|
||||||
import Navbar from '../components/navbar.svelte';
|
import Navbar from '../components/navbar.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
@ -34,12 +35,20 @@
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="font-body py-8">
|
<footer class="font-body py-8">
|
||||||
<p class="text-sm opacity-50 hover:opacity-90 transition duration-300 ease-in-out">
|
<p class="text-sm opacity-50 hover:opacity-90 transition duration-300 ease-in-out inline-block">
|
||||||
{$_('footer.made')} <span class="text-red-500">❤</span>
|
{$_('footer.made')} <span class="text-red-500">❤</span>
|
||||||
{$_('footer.indonesia')}.
|
{$_('footer.indonesia')}.
|
||||||
{$_('footer.available')}
|
{$_('footer.available')}
|
||||||
<a href="https://www.github.com/aldy505/jokes-bapak2-api" class="hover:underline">{$_('footer.github')}</a>.
|
<a href="https://www.github.com/aldy505/jokes-bapak2-api" class="hover:underline">{$_('footer.github')}</a>.
|
||||||
</p>
|
</p>
|
||||||
|
<p class="text-sm opacity-50 inline-block">
|
||||||
|
|
|
||||||
|
</p>
|
||||||
|
<p class="text-sm opacity-50 hover:opacity-90 transition duration-300 ease-in-out inline-block">
|
||||||
|
{$_('footer.language')}
|
||||||
|
<a href="?lang=en" target="_top" class="hover:underline">{$_('footer.english')}</a>
|
||||||
|
<a href="?lang=id" target="_top" class="hover:underline">{$_('footer.indonesian')}</a>
|
||||||
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue