Skip to content

Commit 8f8cd51

Browse files
authored
Merge pull request #25 from Ysiel/feature/french-localization
add french localization
2 parents 15e759b + fab22dd commit 8f8cd51

File tree

5 files changed

+932
-2
lines changed

5 files changed

+932
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In the tradition of [fuckingblocksyntax.com](https://fuckingblocksyntax.com/) an
2424

2525
## Languages
2626

27-
Available in 10 languages: English, Spanish, Portuguese (BR & PT), Arabic, Korean, Japanese, Chinese (Simplified & Traditional), Russian and Turkish.
27+
Available in 12 languages: English, Spanish, Portuguese (BR & PT), Arabic, Korean, Japanese, Chinese (Simplified & Traditional), Russian, Turkish and French.
2828

2929
## Development
3030

eleventy.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default function(eleventyConfig) {
2020
"zh-TW": { name: "Chinese (Traditional)", dir: "ltr", native: "繁體中文" },
2121
ar: { name: "Arabic", dir: "rtl", native: "العربية" },
2222
ru: { name: "Russian", dir: "ltr", native: "Русский" },
23-
tr: { name: "Turkish", dir: "ltr", native: "Türkçe" }
23+
tr: { name: "Turkish", dir: "ltr", native: "Türkçe" },
24+
fr: { name: "French", dir: "ltr", native: "Français" },
2425
});
2526

2627
// Dev server configuration: redirect root to /en/

src/_layouts/base.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<link rel="alternate" hreflang="ar" href="https://fuckingapproachableswiftconcurrency.com/ar/">
2424
<link rel="alternate" hreflang="ru" href="https://fuckingapproachableswiftconcurrency.com/ru/">
2525
<link rel="alternate" hreflang="tr" href="https://fuckingapproachableswiftconcurrency.com/tr/">
26+
<link rel="alternate" hreflang="fr" href="https://fuckingapproachableswiftconcurrency.com/fr/">
2627
<link rel="alternate" hreflang="x-default" href="https://fuckingapproachableswiftconcurrency.com/en/">
2728

2829
<!-- Open Graph / Facebook -->

src/_redirects

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
# Turkish
3737
/ /tr/ 302 Language=tr
3838

39+
# French
40+
/ /fr/ 302 Language=fr
41+
3942
# English (explicit match)
4043
/ /en/ 302 Language=en
4144

0 commit comments

Comments
 (0)