Skip to content

Commit

Permalink
[V2] Adiciona suporte a múltiplas línguas usando Jekyll Polyglot (#267)
Browse files Browse the repository at this point in the history
* Using jekyll with polyglot to create localized version

Signed-off-by: George Araújo <[email protected]>

* Now formatting data inside _data/ directory

Signed-off-by: George Araújo <[email protected]>

* Fixed formatting of data files

Signed-off-by: George Araújo <[email protected]>

* Removed json files from pre-commit-config

Signed-off-by: George Araújo <[email protected]>

* Splitted cards information per letter

Signed-off-by: George Araújo <[email protected]>

* Removed json files from run_on_code_changed.sh

Signed-off-by: George Araújo <[email protected]>

* Moved all scss to _sass dir

Signed-off-by: George Araújo <[email protected]>

* Moved cards.json to _assets dir

Signed-off-by: George Araújo <[email protected]>

* Changed ruby version to 3.3.3

Signed-off-by: George Araújo <[email protected]>

* Updated README and CONTRIBUTING

Signed-off-by: George Araújo <[email protected]>

* Renamed script.liquid

Signed-off-by: George Araújo <[email protected]>

* Added prettier configuration file

Signed-off-by: George Araújo <[email protected]>

* Added devcontainer support

Signed-off-by: George Araújo <[email protected]>

* Updated scripts reference in base layout

Signed-off-by: George Araújo <[email protected]>

* Added local site link to contributing

Signed-off-by: George Araújo <[email protected]>

* Solved merge issues

Signed-off-by: George Araújo <[email protected]>

* Fixed some pt-br definitions

Signed-off-by: George Araújo <[email protected]>

* Fixed more portuguese definitions

Signed-off-by: George Araújo <[email protected]>

* Added missing translations

Signed-off-by: George Araújo <[email protected]>

* Removed prettierrc config file

Signed-off-by: George Araújo <[email protected]>

* Fixed prettier complaints

Signed-off-by: George Araújo <[email protected]>

* Updated prettier workflow to include liquid files

Signed-off-by: George Araújo <[email protected]>

* Updated data path on GitHub actions

Signed-off-by: George Araújo <[email protected]>

* Testing fix to sort-data

Signed-off-by: George Araújo <[email protected]>

* Removed test code

Signed-off-by: George Araújo <[email protected]>

* Updated CONTRIBUTING.md

Signed-off-by: George Araújo <[email protected]>

* Renamed _assets to _json

Signed-off-by: George Araújo <[email protected]>

* Updated CONTRIBUTING

Signed-off-by: George Araújo <[email protected]>

* Moved pwa code to its own js

Signed-off-by: George Araújo <[email protected]>

* Updated CONTRIBUTING with pwa js

Signed-off-by: George Araújo <[email protected]>

* Removed .ruby-version file

Signed-off-by: George Araújo <[email protected]>

* Adding suggested changes

Signed-off-by: George Araújo <[email protected]>

* Added missing definitions

Signed-off-by: George Araújo <[email protected]>

* Added debugging message to format_data.py

Signed-off-by: George Araújo <[email protected]>

* Formatted data files

Signed-off-by: George Araújo <[email protected]>

* Added more debug messages to format_data.py

Signed-off-by: George Araújo <[email protected]>

* Fixed formatting in all files

Signed-off-by: George Araújo <[email protected]>

* Added more debug messages to format_data.py

Signed-off-by: George Araújo <[email protected]>

* Fixed formatting in all files

Signed-off-by: George Araújo <[email protected]>

* Made pre-commit hooks run sequentially

Signed-off-by: George Araújo <[email protected]>

* Fixed formatting in all files

Signed-off-by: George Araújo <[email protected]>

* Updated ruby packages

Signed-off-by: George Araújo <[email protected]>

* Removed duplicate description of 2FA

Signed-off-by: George Araújo <[email protected]>

* Capitalize tags

Signed-off-by: George Araújo <[email protected]>

* Capitalized tags

Signed-off-by: George Araújo <[email protected]>

* Added reference to add term to all languages

Signed-off-by: George Araújo <[email protected]>

* Deleted .ruby-version since it throws error with devcontainer

Signed-off-by: George Araújo <[email protected]>

---------

Signed-off-by: George Araújo <[email protected]>
  • Loading branch information
george-gca authored Jan 6, 2025
1 parent 9495729 commit cdb31ff
Show file tree
Hide file tree
Showing 79 changed files with 4,546 additions and 1,857 deletions.
35 changes: 35 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
{
"name": "Jekyll",
"image": "mcr.microsoft.com/devcontainers/jekyll",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
"packages": "ruby-full"
},
"ghcr.io/devcontainers-community/npm-features/prettier:1": {}
},

// Optionally: run jekyll serve automatically on container entering
"postAttachCommand": "bundle exec jekyll serve",

"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"sissel.shopify-liquid",
"yzhang.markdown-all-in-one"
],
"settings": {
// use prettier code formatter as default formatter
"editor.defaultFormatter": "esbenp.prettier-vscode",
// "prettier.configPath": ".prettierrc",
"editor.formatOnSave": true
}
}
},

"remoteUser": "vscode"
}
6 changes: 3 additions & 3 deletions .github/workflows/json-yaml-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
branches:
- main
paths:
- "assets/data/**"
- "_data/**"
pull_request:
paths:
- "assets/data/**"
- "_data/**"
workflow_dispatch:

permissions:
Expand All @@ -24,5 +24,5 @@ jobs:
id: json-yaml-validate
uses: GrantBirki/[email protected] # replace with the latest version
with:
base_dir: assets/data # base directory to search for files
base_dir: _data # base directory to search for files
comment: "true" # enable comment mode
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
uses: AbdulRehman-1/pr-prettier@initial
with:
only_changed: true
prettier_options: --write **/*.{css,html,js,json,md,scss,yaml,yml}
prettier_options: --write **/*.{css,html,js,json,liquid,md,scss,yaml,yml}
6 changes: 3 additions & 3 deletions .github/workflows/sort-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
branches:
- main
paths:
- "assets/data/**"
- "_data/**"

pull_request:
paths:
- "assets/data/**"
- "_data/**"

workflow_dispatch:

Expand All @@ -29,7 +29,7 @@ jobs:
id: changed-data
uses: tj-actions/[email protected]
with:
files: assets/data/**.json
files: _data/**.yml

- name: Setup Python
if: steps.changed-data.outputs.any_changed == 'true'
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,10 @@ $RECYCLE.BIN/
node_modules/

# End of https://www.toptal.com/developers/gitignore/api/windows,macos,linux

# Jekyll build files
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
- repo: local
hooks:
- id: format-data
name: Format JSON data files
name: Format yml data files
entry: bash run_on_data_changed.sh
language: system
types: [json]
types: [yaml]
verbose: true
require_serial: true
- repo: local
hooks:
- id: format-code
name: Format code files with Prettier
entry: bash run_on_code_changed.sh
language: system
types_or: [css, html, javascript, json, sass, scss, yaml]
types_or: [css, html, javascript, sass, scss, yaml]
verbose: true
require_serial: true
Loading

0 comments on commit cdb31ff

Please sign in to comment.