Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit b6d7ad1

Browse files
committed
Update translation and add lang switcher
1 parent 2ba93f9 commit b6d7ad1

File tree

10 files changed

+455
-372
lines changed

10 files changed

+455
-372
lines changed

config/translatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
/*
66
* If a translation has not been set for a given locale, use this locale instead.
77
*/
8-
'fallback_locale' => 'en',
8+
'fallback_locale' => 'fr',
99
];

config/typicms.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@
3636
*/
3737
'template_dir' => 'public',
3838

39+
'lang_chooser' => false,
40+
41+
'languages' => [
42+
'en' => 'English (En)',
43+
'fr' => 'Français (Fr)',
44+
],
45+
3946
];

public/css/public.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12918,6 +12918,10 @@ footer.footer hr.footer_bar {
1291812918
background-color: #fff;
1291912919
}
1292012920

12921+
footer.footer .lang-switcher {
12922+
margin-bottom: 30px;
12923+
}
12924+
1292112925
/* Return on top */
1292212926
#returnOnTop {
1292312927
display: none;
@@ -13636,6 +13640,9 @@ section.posts-events .event:hover {
1363613640
}
1363713641

1363813642
@media (min-width: 992px) {
13643+
section.posts-events {
13644+
margin-top: 50px;
13645+
}
1363913646
section.posts-events .lastest-post {
1364013647
display: block;
1364113648
}

public/js/admin.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"/js/admin.js": "/js/admin.js?id=f11e07b2e99c79982184",
2+
"/js/admin.js": "/js/admin.js?id=a00a4896c78ff938ec03",
33
"/css/admin.css": "/css/admin.css?id=70b017753472afabb246",
4-
"/css/public.css": "/css/public.css?id=cc3b2d032038996abbaa",
4+
"/css/public.css": "/css/public.css?id=64743826b809f2e8c431",
55
"/js/public.js": "/js/public.js?id=5a2145fe4119eda16940",
66
"/components/simplemde/simplemde.js": "/components/simplemde/simplemde.js?id=fd052f831c01ff10535c",
77
"/components/simplemde/simplemde.css": "/components/simplemde/simplemde.css?id=b8697c785bbf0627fb05",

0 commit comments

Comments
 (0)