Skip to content

Commit ccab761

Browse files
authored
Merge pull request #8 from oleksis/i18n
[I18n] Add Localization (L18n)
2 parents 41d3b94 + be99769 commit ccab761

File tree

24 files changed

+240
-86
lines changed

24 files changed

+240
-86
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
assets/js/index.js
2+
assets/js/jquery.min.js
3+
assets/js/bpd.js

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ npm-debug.log
22
_site
33
venv
44
.venv
5+
.jekyll-metadata

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
assets/js/jquery.min.js
2+
assets/js/index.js
3+
_layouts/default.html
4+
_layouts/index.html
5+
_includes/header.html

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
printWidth: 250

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"dbaeumer.vscode-eslint",
5+
"redhat.vscode-yaml",
6+
"github.vscode-github-actions"
7+
// "deque-systems.vscode-axe-linter"
8+
]
9+
}

_articles/es/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: index
3+
title: Comunidad de desarrolladores de Black Python.
4+
lang: es
5+
permalink: /es/
6+
---

_config.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ navigation:
1818
url: /
1919
fa: fa fa-home fa-fw
2020
- text: About Us
21-
url: /about.html
21+
url: /about/
2222
fa: fa fa-info-circle fa-fw
2323
- text: Events
24-
url: /events.html
24+
url: /events/
2525
fa: fa fa-calendar fa-fw
2626
- text: Conferences
27-
url: /conferences.html
27+
url: /conferences/
2828
fa: fa fa-microphone fa-fw
2929
- text: Community
30-
url: /community.html
30+
url: /community/
3131
fa: fa fa-users fa-fw
3232

3333
# Build settings
@@ -38,8 +38,14 @@ plugins:
3838
- github-pages
3939
- jemoji
4040
- jekyll-feed
41+
# - jekyll-seo-tag
42+
# - jekyll-sitemap
4143

4244
exclude:
45+
- bin
46+
- CNAME
47+
- CODE_OF_CONDUCT.md
48+
- CONTRIBUTING.md
4349
- README.md
4450
- Gemfile*
4551
- node_modules
@@ -55,3 +61,21 @@ exclude:
5561
- venv
5662
- .venv
5763
# timezone: America/Toronto
64+
65+
permalink: "/:path/"
66+
67+
collections:
68+
articles:
69+
output: true
70+
permalink: "/:path/"
71+
72+
defaults:
73+
# - scope:
74+
# path: ""
75+
# values:
76+
# image: /assets/images/cards/default.png
77+
- scope:
78+
path: ""
79+
type: articles
80+
values:
81+
layout: article

_data/fields.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Each piece of content has YAML front matter with these properties:
2+
3+
lang:
4+
type: String
5+
6+
layout:
7+
type: String
8+
9+
title:
10+
type: String
11+
required: true
12+
13+
contents:
14+
type: Array
15+
16+
description:
17+
type: String
18+
19+
class:
20+
type: String
21+
22+
order:
23+
type: Integer
24+
25+
image: {}
26+
27+
related:
28+
type: Array
29+
30+
untranslated:
31+
type: TrueClass
32+
33+
redirect_from:
34+
type: String

_data/locales/en.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
en:
2+
locale_name: English
3+
nav:
4+
- Home
5+
- About Us
6+
- Events
7+
- Conferences
8+
- Community
9+
index:
10+
lead: Welcome to Black Python Developers Community.
11+
article:
12+
table_of_contents: Table of Contents
13+
footer:
14+
contribute:
15+
heading: Contribute
16+
description: Want to make a suggestion? This content is open source. Help us improve it.
17+
button: Contribute
18+
subscribe:
19+
heading: Stay in touch
20+
description: Be the first to hear about BPDevs's latest open source tips and resources.
21+
label: Email Address
22+
button: Subscribe

_data/locales/es.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
es:
2+
locale_name: Español
3+
nav:
4+
- Inicio
5+
- Acerca de
6+
- Eventos
7+
- Conferencias
8+
- Comunidad
9+
index:
10+
lead: Bienvenidos a la Comunidad de desarrolladores de Black Python.
11+
article:
12+
table_of_contents: Tabla de contenidos
13+
footer:
14+
contribute:
15+
heading: Contribuir
16+
description: ¿Tienes alguna sugerencia? Este contenido es de código abierto. Ayúdanos a mejorarlo.
17+
button: Contribuir
18+
subscribe:
19+
heading: Suscribirse para novedades
20+
description: Sea el primero en enterarse de los últimos consejos y recursos de código abierto.
21+
label: Dirección de correo
22+
button: Suscribirse

0 commit comments

Comments
 (0)