File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: index
3
+ title: Jumuiya ya Wasanidi Programu wa Python Nyeusi.
4
+ lang: sw
5
+ permalink: /sw/
6
+ ---
7
+
8
+ {% assign t = site.data.locales[page.lang][page.lang] %} {% if page.title %} {% assign header = page.title %} {% else %} {% assign header = site.title %} {% endif %}
9
+ < h1 > {{ t.index.lead }}</ h1 >
Original file line number Diff line number Diff line change
1
+ sw :
2
+ locale_name : Swahili
3
+ nav :
4
+ - Nyumbani
5
+ - Kutuhusu
6
+ - Matukio
7
+ - Mikutano
8
+ - Jamii
9
+ index :
10
+ lead : Karibu kwenye Jumuiya ya Wasanidi Programu wa Python Nyeusi.
11
+ article :
12
+ table_of_contents : Jedwali la Yaliyomo
13
+ footer :
14
+ contribute :
15
+ heading : Kuchangia
16
+ description : Unahitaji kutoa mapendekezo? Maudhui haya ni chanzo wazi. Tusaidie kuboresha.
17
+ button : Kuchangia
18
+ subscribe :
19
+ heading : Endelea kuwasiliana
20
+ description : Kuwa wa kwanza kusikia kuhusu vidokezo vya hivi karibuni vya chanzo wazi vya BPDevs na rasilimali.
21
+ label : Anwani ya barua pepe
22
+ button : Kujiunga
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function loadLanguage(lang) {
23
23
24
24
// Check if the URL path is more than just /path/ and starts with a language code
25
25
let path_parts = base_pathname . split ( "/" ) ;
26
- let isLongPath = path_parts . length > 3 ;
26
+ let isLongPath = path_parts . length >= 3 ;
27
27
let startsWithLangCode = lang_path_regex . test ( base_pathname ) ;
28
28
29
29
if ( isLongPath && startsWithLangCode ) {
You can’t perform that action at this time.
0 commit comments