Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding arabic tranlations #1276

Open
wants to merge 1,092 commits into
base: translations-arabic
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1092 commits
Select commit Hold shift + click to select a range
4a5ce0d
docs: update README.indonesian.md [skip ci]
allcontributors[bot] Jun 8, 2022
a9d46ef
docs: update README.japanese.md [skip ci]
allcontributors[bot] Jun 8, 2022
06c987c
docs: update README.korean.md [skip ci]
allcontributors[bot] Jun 8, 2022
e967db5
docs: update README.md [skip ci]
allcontributors[bot] Jun 8, 2022
a6f6841
docs: update README.polish.md [skip ci]
allcontributors[bot] Jun 8, 2022
e81351a
docs: update README.russian.md [skip ci]
allcontributors[bot] Jun 8, 2022
9ea4d4c
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 8, 2022
81fa546
Update README.md
goldbergyoni Jun 8, 2022
cec99a1
Update CONTRIBUTING.md
goldbergyoni Jun 15, 2022
7151116
Update CONTRIBUTING.md
goldbergyoni Jun 15, 2022
c774857
Create contributing.md
goldbergyoni Jun 15, 2022
afd387c
fixes small typos in README.md
Esser50K Jun 18, 2022
d75ff66
Merge pull request #1183 from Esser50K/master
rluvaton Jun 18, 2022
d457f36
docs: update README.basque.md [skip ci]
allcontributors[bot] Jun 18, 2022
456440d
docs: update README.brazilian-portuguese.md [skip ci]
allcontributors[bot] Jun 18, 2022
1e093e7
docs: update README.chinese.md [skip ci]
allcontributors[bot] Jun 18, 2022
9ca4573
docs: update README.french.md [skip ci]
allcontributors[bot] Jun 18, 2022
10e5486
docs: update README.indonesian.md [skip ci]
allcontributors[bot] Jun 18, 2022
02f55b6
docs: update README.japanese.md [skip ci]
allcontributors[bot] Jun 18, 2022
0888c14
docs: update README.polish.md [skip ci]
allcontributors[bot] Jun 18, 2022
d09ab73
docs: update README.russian.md [skip ci]
allcontributors[bot] Jun 18, 2022
f9f18df
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 18, 2022
9246f6f
docs: update README.md [skip ci]
allcontributors[bot] Jun 18, 2022
03c68f4
docs: update README.korean.md [skip ci]
allcontributors[bot] Jun 18, 2022
8abf0a4
Merge pull request #1184 from goldbergyoni/all-contributors/add-Esser50K
rluvaton Jun 18, 2022
11ce729
update the last update badge to today [skip ci]
rluvaton Jun 18, 2022
acc38ba
Merge pull request #1176 from goldbergyoni/update-last-update-badge
github-actions[bot] Jun 18, 2022
eb5fcaa
Merge branch 'master' into all-contributors/add-backend-joonyoung
rluvaton Jun 18, 2022
9517b17
Merge pull request #1179 from goldbergyoni/all-contributors/add-backe…
rluvaton Jun 18, 2022
b35648e
feat: 5.17 chinese
memedameng Jun 22, 2022
c6db0ae
5.17 chinese
memedameng Jun 23, 2022
7137d2b
chinese translation 5.17
memedameng Jun 23, 2022
b2882ca
Update syncerrorhandling.md
Jun 25, 2022
5e9c259
no message
Jun 25, 2022
27c05b1
update 5.17 chinese translation
memedameng Jun 30, 2022
b6442e5
Merge pull request #1185 from memedameng/master
mattjin Jul 1, 2022
d6f2c82
Merge pull request #1186 from ShiChenCong/master
rluvaton Jul 9, 2022
b0cc620
docs: update README.basque.md [skip ci]
allcontributors[bot] Jul 9, 2022
c06b747
docs: update README.brazilian-portuguese.md [skip ci]
allcontributors[bot] Jul 9, 2022
09b82f9
docs: update README.chinese.md [skip ci]
allcontributors[bot] Jul 9, 2022
e62583e
docs: update README.french.md [skip ci]
allcontributors[bot] Jul 9, 2022
86d1b55
docs: update README.indonesian.md [skip ci]
allcontributors[bot] Jul 9, 2022
e2fb082
docs: update README.japanese.md [skip ci]
allcontributors[bot] Jul 9, 2022
586c4e5
docs: update README.md [skip ci]
allcontributors[bot] Jul 9, 2022
1173178
docs: update README.polish.md [skip ci]
allcontributors[bot] Jul 9, 2022
a7b34d4
docs: update README.russian.md [skip ci]
allcontributors[bot] Jul 9, 2022
18079f9
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jul 9, 2022
32d70d2
docs: update README.korean.md [skip ci]
allcontributors[bot] Jul 9, 2022
52503cd
Delete contributing.md
rluvaton Jul 9, 2022
86959fe
remove ShiChenCong from review
rluvaton Jul 9, 2022
0add5a5
Merge pull request #1191 from goldbergyoni/rluvaton-patch-1
rluvaton Jul 10, 2022
8cdfea3
Merge pull request #1190 from goldbergyoni/all-contributors/add-ShiCh…
rluvaton Jul 10, 2022
b93c3ba
Update README.md
goldbergyoni Aug 18, 2022
98b7e52
Update README.md
goldbergyoni Aug 22, 2022
1f72c4f
fix: common-answers link
Sep 19, 2022
2d71612
Merge pull request #1197 from mauroaccornero/fix/common-answers-link
rluvaton Sep 20, 2022
a88c8ad
update README.basque.md [skip ci]
allcontributors[bot] Sep 20, 2022
d1517df
update README.brazilian-portuguese.md [skip ci]
allcontributors[bot] Sep 20, 2022
9d6b6d2
update README.chinese.md [skip ci]
allcontributors[bot] Sep 20, 2022
3111967
update README.french.md [skip ci]
allcontributors[bot] Sep 20, 2022
f99f7f7
update README.indonesian.md [skip ci]
allcontributors[bot] Sep 20, 2022
7892d1a
update README.japanese.md [skip ci]
allcontributors[bot] Sep 20, 2022
bc10295
update README.korean.md [skip ci]
allcontributors[bot] Sep 20, 2022
603d6ce
update README.md [skip ci]
allcontributors[bot] Sep 20, 2022
26d0bc5
update README.polish.md [skip ci]
allcontributors[bot] Sep 20, 2022
8b969f0
update .all-contributorsrc [skip ci]
allcontributors[bot] Sep 20, 2022
9458118
update README.russian.md [skip ci]
allcontributors[bot] Sep 20, 2022
0dfbec0
Lint for all languages
Kristories Oct 27, 2022
97193d2
Fix lint for english
Kristories Oct 27, 2022
a96dded
Fix lint for basque
Kristories Oct 27, 2022
0427134
Fix lint for portuguese
Kristories Oct 27, 2022
b9497e5
Fix lint for chinese
Kristories Oct 27, 2022
796e189
Fix lint for french
Kristories Oct 27, 2022
64b69b1
Fix lint for indonesian (bahasa)
Kristories Oct 27, 2022
1916d79
Fix lint for japanese
Kristories Oct 27, 2022
8c7e67f
Fix lint for korean
Kristories Oct 27, 2022
359e3f7
Fix lint for polish
Kristories Oct 27, 2022
75909bb
Fix lint for russian
Kristories Oct 27, 2022
5a3562d
Add precommit info
Kristories Oct 27, 2022
9712092
Merge pull request #1203 from Kristories/fix-lint
rluvaton Oct 28, 2022
ffce2a7
update the last update badge to today [skip ci]
rluvaton Oct 28, 2022
22f100f
Merge pull request #1187 from goldbergyoni/update-last-update-badge
github-actions[bot] Oct 28, 2022
a7ace7a
Merge pull request #1201 from goldbergyoni/all-contributors/add-mauro…
rluvaton Oct 28, 2022
7e39586
Test regex data:
Kristories Oct 30, 2022
fae6073
Fix build action
Kristories Oct 30, 2022
d8c1a1b
docs: Update broken link in breakintcomponents.md
MikeFoden Nov 20, 2022
1b050b5
Merge pull request #1208 from MikeFoden/patch-1
rluvaton Dec 5, 2022
898ab48
Merge pull request #1205 from Kristories/fix-build
rluvaton Dec 5, 2022
4dea768
update the last update badge to today [skip ci]
rluvaton Dec 5, 2022
7eb04bd
Merge pull request #1215 from goldbergyoni/update-last-update-badge
rluvaton Jan 8, 2023
63a3592
Fix typo in Section 2.2
tobycodes Jan 8, 2023
cc3c541
Merge pull request #1216 from tobycodes/patch-1
rluvaton Jan 9, 2023
f23f808
update the last update badge to today [skip ci]
rluvaton Jan 9, 2023
4b1cd95
Merge pull request #1217 from goldbergyoni/update-last-update-badge
github-actions[bot] Jan 9, 2023
9649371
Update GitHub actions
SpencerIsGiddy Jan 17, 2023
1deaf30
Update lint-and-generate-html-from-markdown.yml
SpencerIsGiddy Jan 17, 2023
c9828c7
Update update-date-in-last-update-badge.yml
SpencerIsGiddy Jan 17, 2023
e546e18
docs: fix typo
no-yan Mar 18, 2023
24b6e69
Merge pull request #1224 from no-yan/chore/fix-typo
rluvaton Mar 19, 2023
4da0e25
update the last update badge to today [skip ci]
rluvaton Mar 19, 2023
f4634ae
docs: update README.basque.md [skip ci]
allcontributors[bot] Mar 19, 2023
56ed0aa
docs: update README.brazilian-portuguese.md [skip ci]
allcontributors[bot] Mar 19, 2023
e047d9a
docs: update README.chinese.md [skip ci]
allcontributors[bot] Mar 19, 2023
91bf06c
docs: update README.french.md [skip ci]
allcontributors[bot] Mar 19, 2023
75717cf
docs: update README.indonesian.md [skip ci]
allcontributors[bot] Mar 19, 2023
c5e3d13
docs: update README.japanese.md [skip ci]
allcontributors[bot] Mar 19, 2023
4ef29dc
Merge pull request #1225 from goldbergyoni/update-last-update-badge
rluvaton Mar 19, 2023
ab6ef10
docs: update README.korean.md [skip ci]
allcontributors[bot] Mar 19, 2023
4d5cf6c
docs: update README.polish.md [skip ci]
allcontributors[bot] Mar 19, 2023
5fe48a2
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Mar 19, 2023
fba03c2
docs: update README.md [skip ci]
allcontributors[bot] Mar 19, 2023
6f3af20
docs: update README.russian.md [skip ci]
allcontributors[bot] Mar 19, 2023
1de4808
Merge pull request #1226 from goldbergyoni/all-contributors/add-no-yan
rluvaton Mar 21, 2023
10ab3dd
update the last update badge to today [skip ci]
rluvaton Mar 21, 2023
3ef4d64
Merge pull request #1227 from goldbergyoni/update-last-update-badge
github-actions[bot] Mar 22, 2023
b7b0f7c
chore: fix typo and link syntax
moosashah Apr 1, 2023
4e15357
Merge pull request #1229 from moosashah/patch-1
rluvaton Apr 8, 2023
9c874db
remove build step
rluvaton Apr 8, 2023
9d7a863
Update the Privatenpm.png file
sagi403 Apr 16, 2023
eecce33
Merge pull request #1233 from goldbergyoni/remove-build-step
rluvaton Apr 19, 2023
cc797b4
update the last update badge to today [skip ci]
rluvaton Apr 19, 2023
e053f81
Merge pull request #1232 from goldbergyoni/update-last-update-badge
github-actions[bot] Apr 19, 2023
6213f28
Merge pull request #1235 from sagi403/master
rluvaton Apr 19, 2023
32ea01f
fix conflict
SpencerIsGiddy Apr 19, 2023
b6e72bf
Merge branch 'goldbergyoni:master' into patch-1
SpencerIsGiddy Apr 19, 2023
1b829bf
Merge pull request #1218 from SpencerIsGiddy/patch-1
rluvaton Apr 19, 2023
194a827
More edits
May 4, 2023
06819bb
More edits
May 4, 2023
f4fb78e
New bullet: avoid floating code
May 7, 2023
d5aff22
Added nock
May 8, 2023
6b8c690
Added nock
May 8, 2023
409a715
More edits
May 8, 2023
ef86485
More edits
May 8, 2023
ae54a43
More edits
May 8, 2023
b98b340
More edits
May 8, 2023
ccd5c9d
More edits
May 8, 2023
7236421
Update README.md
goldbergyoni May 9, 2023
90a7114
Update sections/projectstructre/typescript-considerations.md
goldbergyoni May 9, 2023
6bddf76
Update sections/testingandquality/mock-external-services.md
goldbergyoni May 9, 2023
8c9dca8
Update sections/testingandquality/test-five-outcomes.md
goldbergyoni May 9, 2023
a905485
Update sections/testingandquality/test-five-outcomes.md
goldbergyoni May 9, 2023
1157953
Update sections/testingandquality/test-five-outcomes.md
goldbergyoni May 9, 2023
501cfde
Update sections/testingandquality/test-five-outcomes.md
goldbergyoni May 9, 2023
e803dab
Update sections/testingandquality/test-five-outcomes.md
goldbergyoni May 9, 2023
bb5dabd
Various fixes
May 9, 2023
0047834
Various fixes
May 9, 2023
92ad4d9
Merge pull request #1240 from goldbergyoni/section-1-improvements
goldbergyoni May 9, 2023
f6ba725
Error handling section
May 9, 2023
f8b1810
Code quality section
May 9, 2023
235516c
Production practices
May 10, 2023
24c207d
Production practices
May 10, 2023
f799d88
Production practices
May 10, 2023
c2af8ff
Production practices
May 11, 2023
fb8ee24
Production practices
May 11, 2023
4f9757d
Production practices
May 11, 2023
f3697d2
Update choose-framework.md
goldbergyoni May 11, 2023
c8b7eb2
Production practices
May 11, 2023
a917e09
Merge pull request #1246 from goldbergyoni/various-edits-2023
goldbergyoni Jun 5, 2023
ccc1f5e
add main hebrew readme page and translate intro
hodbauer Jun 20, 2023
207f304
fix typo
hodbauer Jun 20, 2023
8770e20
translate main titles
hodbauer Jun 20, 2023
10b2376
translate bolded TLDR all over main readme
hodbauer Jun 20, 2023
faecc79
translate main readme 1.1
hodbauer Jun 20, 2023
89d310c
translate otherwise keyword
hodbauer Jun 20, 2023
e373ef8
translate section 1.2
hodbauer Jul 4, 2023
6fc5b24
translate section 1.3
hodbauer Jul 4, 2023
9538ae2
fix otherwise punctuation mark
hodbauer Jul 4, 2023
f03472b
translate section 1.4
hodbauer Jul 4, 2023
78563c4
translate section 1.5
hodbauer Jul 4, 2023
adec730
translate section 1.6
hodbauer Jul 5, 2023
adb4ab2
improve section 1.6 title
hodbauer Jul 5, 2023
fd0674e
translate return to top
hodbauer Jul 6, 2023
17949c1
translate section 2.1
hodbauer Jul 9, 2023
fdcb0e0
translate section 2.2
hodbauer Jul 9, 2023
99600d4
translate section 2.3
hodbauer Jul 10, 2023
4d9b918
translate section 2.4
hodbauer Jul 11, 2023
b39d0c6
translate section 2.5
hodbauer Jul 11, 2023
d58b79f
translate section 2.6
hodbauer Jul 11, 2023
ca8834b
translate section 2.7
hodbauer Jul 11, 2023
a876b56
translate section 2.8
hodbauer Jul 11, 2023
b04943b
translate section 2.9
hodbauer Jul 11, 2023
9d9cccc
Update README.md
goldbergyoni Jul 11, 2023
9c8d237
translate section 2.10
hodbauer Jul 11, 2023
92d2bbf
translate section 2.11
hodbauer Jul 11, 2023
54b889f
translate section 2.12
hodbauer Jul 11, 2023
0992f12
translate section 3.1
hodbauer Jul 12, 2023
36e68f2
translatesection 3.1
hodbauer Jul 16, 2023
41ddb0a
translate section 3.3
hodbauer Jul 16, 2023
86644fa
translate section 3.3 fixes
hodbauer Jul 16, 2023
1cebe28
translate section 3.4
hodbauer Jul 16, 2023
ae00fa0
translate section 3.5
hodbauer Jul 16, 2023
7e612ff
translate section 3.6
hodbauer Jul 16, 2023
f4ff5dd
translate section 3.7
hodbauer Jul 16, 2023
b102962
translate section 3.8
hodbauer Jul 16, 2023
3751b89
translate section 3.9
hodbauer Jul 17, 2023
fd3df97
translate section 3.10
hodbauer Jul 17, 2023
763220e
translate section 3.12
hodbauer Jul 17, 2023
ad9a4ea
translate section 3.13
hodbauer Jul 17, 2023
b6d1a8b
translate section 4 intro
hodbauer Jul 18, 2023
584658b
translate section 4.1
hodbauer Jul 18, 2023
c6421fd
translate section 4.2
hodbauer Jul 18, 2023
8e7210d
translate section 4.3
hodbauer Jul 18, 2023
774e269
translate section 4.4
hodbauer Jul 18, 2023
becd7fb
translate section 4.5
hodbauer Jul 18, 2023
3239ebb
translate section 4.6
hodbauer Jul 18, 2023
5810b57
translate section 4.7
hodbauer Jul 18, 2023
a60e278
Update README.md
goldbergyoni Jul 20, 2023
81e7a10
Update README.md
goldbergyoni Jul 20, 2023
5e2c5bc
Update README.md
goldbergyoni Jul 20, 2023
b11ca9d
Update README.md
goldbergyoni Jul 21, 2023
51f869e
translate section 3.11
hodbauer Jul 24, 2023
65194bf
translate section 4.9
hodbauer Jul 24, 2023
e4d858b
translate section 4.10
hodbauer Jul 24, 2023
8891402
translate section 4.11
hodbauer Jul 24, 2023
33d4271
translate section 4.12
hodbauer Jul 24, 2023
3a19bf4
Update README.md
goldbergyoni Jul 24, 2023
d465007
translate section 4.13
hodbauer Jul 24, 2023
fea4ada
Update README.md
goldbergyoni Jul 25, 2023
c72f74a
Update README.md
goldbergyoni Jul 25, 2023
4c632f5
fix code sample for example 3.3
muratcankirdar Jul 26, 2023
fedb0bd
fix code sample for 3.3 in polish
muratcankirdar Jul 26, 2023
27032a9
Fix typo in readme-general-toc-4.md
eltociear Jul 27, 2023
d3b764f
Merge pull request #1259 from eltociear/patch-1
rluvaton Jul 28, 2023
5694ed7
Merge pull request #1258 from muratcankirdar/3.3-fix-code-sample
rluvaton Jul 28, 2023
d7490ba
Fix typos and grammar in returningpromises.md
djalilhebal Jul 28, 2023
c658135
translate section 5.1
hodbauer Aug 1, 2023
c2cf071
translate section 5.2
hodbauer Aug 1, 2023
37a1a44
translate section 5.3
hodbauer Aug 1, 2023
154a31d
translate section 5.4
hodbauer Aug 1, 2023
5cc425c
Merge pull request #1260 from djalilhebal/patch-1
rluvaton Aug 2, 2023
f8534c6
fix broken env-var broken link
andersonjoseph Aug 4, 2023
1cee119
Merge pull request #1262 from andersonjoseph/fix-env-var
rluvaton Aug 5, 2023
1f58131
translate section 5.5
hodbauer Aug 6, 2023
a1380ca
translate section 5.6
hodbauer Aug 7, 2023
ced052a
translate section 5.7
hodbauer Aug 8, 2023
b9968ef
translate section 5.8
hodbauer Aug 10, 2023
1f0d733
translate section 5.9
hodbauer Aug 10, 2023
d354129
translate section 5.10
hodbauer Aug 10, 2023
bcba380
Merge branch 'goldbergyoni:master' into hebrew-translation-2023
hodbauer Aug 13, 2023
94d9324
Merge pull request #1263 from hodbauer/hebrew-translation-2023
goldbergyoni Aug 15, 2023
efdd0f2
Update README.hebrew.md
hodbauer Aug 16, 2023
c9547bf
Update README.hebrew.md
hodbauer Aug 16, 2023
360868b
Update README.md
hodbauer Aug 20, 2023
8d825fc
fix typos
omahs Sep 3, 2023
896756b
Merge pull request #1267 from hodbauer/hebrew-translation-intro
goldbergyoni Sep 10, 2023
544ecce
Merge pull request #1273 from omahs/patch-1
goldbergyoni Sep 10, 2023
04b3c2c
Create README.arabic.md
TheCodby Sep 13, 2023
a01c67f
16x16 ar flag
TheCodby Sep 13, 2023
58fbb65
16*16 AR flag
TheCodby Sep 13, 2023
260d6cc
Update README.md
TheCodby Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
436 changes: 432 additions & 4 deletions .all-contributorsrc

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions .github/workflows/automerge-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: automerge
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge:
runs-on: ubuntu-20.04
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.15.5"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "auto-merge,!work in progress"
MERGE_REMOVE_LABELS: "auto-merge"
MERGE_FORKS: "false"
MERGE_RETRIES: "6"
MERGE_RETRY_SLEEP: "10000"
MERGE_DELETE_BRANCH: "true"
30 changes: 30 additions & 0 deletions .github/workflows/lint-and-generate-html-from-markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint & Generate HTML from Markdown
on:
push:
branches:
- master
pull_request:

defaults:
run:
shell: bash
working-directory: .operations

jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
env:
NODE_ENV: test

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "18"

- run: npm install
- run: npm run lint
39 changes: 39 additions & 0 deletions .github/workflows/update-date-in-last-update-badge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update date in last update badge
on:
push:
branches:
- master

jobs:
run:
name: Update the date in last update badge to today
runs-on: ubuntu-20.04

# Limit this action to only run on the main repo and not on forks
if: github.repository_owner == 'goldbergyoni'

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Update last update badge
run: |
# Make file runnable
chmod +x "${GITHUB_WORKSPACE}/.github/workflows/update-last-update-badge.sh"
# Run script
"${GITHUB_WORKSPACE}/.github/workflows/update-last-update-badge.sh" "${GITHUB_WORKSPACE}/README.md"

- name: Commit & Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: update the last update badge to today [skip ci]
author: Update Last Update Badge Action <${{ github.actor }}@users.noreply.github.com>
branch: update-last-update-badge
delete-branch: true
title: 'Update last update badge to today [skip ci]'
labels: |
update-last-update-badge
auto-merge

# Force empty body as the action have default body
body: ''
61 changes: 61 additions & 0 deletions .github/workflows/update-last-update-badge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/bash
set -e

INPUT_FILE=$1

url_encode() {
# url_encode <string>
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:i:1}"
case $c in
[a-zA-Z0-9.~_-]) printf "$c" ;;
*) printf '%%%02X' "'$c" ;;
esac
done
}

is_there_last_update_badge() {
local input_file=$1
local updated_badge_regex=$2

if grep -q "$updated_badge_regex" "$input_file"; then return 0
else return 1
fi
}

is_last_update_badge_date_is_today() {
local input_file=$1
local updated_badge=$2

if grep -q "$updated_badge" "$input_file"; then return 0
else return 1
fi
}


# We use already encoded string emoji because I'm on Windows and the calendar emoji failed to render
CALENDAR_EMOJI_ENCODED='%F0%9F%93%85'

# Date format example: March 03, 2021
CURRENT_DATE=`date +"%B %d, %Y"`

# We explicitly matching the img.shields.io/badge because when we change the provider of the badge the input will be changed too
LAST_UPDATE_BADGE_REGEX='<img id="last-update-badge" src="https:\/\/img\.shields\.io\/badge\/[^>]*>'

UPDATED_BADGE_URL="https:\/\/img.shields.io\/badge\/${CALENDAR_EMOJI_ENCODED}$(url_encode " Last update - ${CURRENT_DATE}-green").svg"
UPDATED_LAST_UPDATE_BADGE="<img id=\"last-update-badge\" src=\"$UPDATED_BADGE_URL\" alt=\"Last update: $CURRENT_DATE\" />"


if ! is_there_last_update_badge "$INPUT_FILE" "$LAST_UPDATE_BADGE_REGEX"; then
# Print with red foreground
echo -e "\033[31mError: Can't find Last update badge\033[m"
exit 1
fi

if is_last_update_badge_date_is_today "$INPUT_FILE" "$UPDATED_LAST_UPDATE_BADGE"; then
echo "No need to update the $INPUT_FILE, the last update badge already pointing to today"
exit 0
fi

sed -i "s@$LAST_UPDATE_BADGE_REGEX@$UPDATED_LAST_UPDATE_BADGE@" "$INPUT_FILE"
1 change: 0 additions & 1 deletion .operations/.env.example

This file was deleted.

57 changes: 37 additions & 20 deletions .operations/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,61 @@
# Contribution guidelines

## What you should know first?

### Lovely & friendly atmosphere
## Lovely & friendly atmosphere

Our code of conduct is 5 words long: we are all friends here

We recognize that being professional and kind are the same thing and strive to maximize our professionalism

### Maintenance work
## Handling issues and PRs

Our operations manual [can be found here](https://github.com/goldbergyoni/nodebestpractices/blob/master/.operations/operations-manual.md)
<br/>
In a nutshell, every issue is an opprtunity to gain new knowledge and attract new contributor. Therefore we aim for vast response and welcoming words 💚

### Writing guidelines
When merging a new PR, add the contributor to our credits list using the all-contributors bot. Just include this text as a PR comment:

Our content writing guidelines [can be found here](https://github.com/goldbergyoni/nodebestpractices/blob/master/.operations/writing-guidelines.md)
`@all-contributors please add @username for content`

The specific PR/issue resolustion depends on its kind:

## Contribution model
**A. New best practice or fundamental changes to existing content -** In that case, involve at least 1 other members to solicit enough feedback for this change. Start by greeting the contributor, ensure the formalities are fine, ensure it conforms to our [writing guidelines](./writing-guidelines.md), ensure enough information was provided and then get at least 1 more collaborators and allow at least a week for comments

### Steering committee 🏆
**B. Plain text change (e.g. Grammar correctness) -** When super-simple wording edits are proposed (i.e. not new content rather language correctness), one can just greet, approve and merge immediately

Members of the steering committee work together to provide guidance and future direction to the project. Each committee member has a particular expertise which they share their knowledge on, and work to lead further improvements to the project in that area. The steering committee members are responsible for approving new best practices, and ensuring current best practices remain relevant.
**C. Translations to a new (not existing) language -** When offered to add new language, greet the person and paste our [translation guidelines](./common-answers.md)

### Collaborators 👍
**D. Edits to existing translations -** If the change can be inferred by the reviewer (e.g., a change of a symbol, number or just date update) then feel free to merge alone. If familiarity with the language is needed, tag the original translator and ask for feedback. The translators name can be found in the home page under "Translations"

Collaborators are members who are contributing to the repository on a regular basis, through suggesting new best practices, triaging issues, reviewing pull requests and more. Along with the steering committee, each collaborator leads a project tracked under our Github projects.
**D. Dicussions and ideas -** When a technical discussion or just general conversation is brought into a new issue, apply your own judgements whether to tag other collaborators

The role is in place to help the steering committee ensure that the content provided is of a high standard, up-to-date with the industry, and available in many languages. Members who frequently participate in these activities will be invited to become a collaborator, based on the quality of their contributions.

The steering committee periodically reviews the collaborator list to identify inactive collaborators. Inactive collaborators can choose to either continue in or step down from their role, in which case they are acknowledged as a past collaborator. They may later request that the steering committee restore them to active status.
## Assets to be aware of

### Other contributions ✨
- Our content writing guidelines [can be found here](./writing-guidelines.md)
- Common questions and answers to issues/PRs [can be found here](./common-answers.md)

This project follows the [All Contributors Specification](https://allcontributors.org/), which means we recognize all types of contributions, whether they are new suggested best practices/ideas, translations, or new content.
## Precommit

If you have contributed to the project in some way and aren't listed, please add an entry for yourself by using the @all-contributors-bot in a Pull Request or issue. Examples:
Before pushing, verify your Markdown passes [the linter](https://www.npmjs.com/package/markdownlint-cli) :

`@all-contributors-bot please add @js-kyle for code`
```bash
npm run lint
```
For example fix basic errors :

`@all-contributors-bot please add @brunoscheufler for content`
```bash
npm run lint --fix
```

Contribution types are listed [here](https://allcontributors.org/docs/en/emoji-key).
## Contribution model

### Steering committee 🏆

Members of the steering committee work together to provide guidance and future direction to the project. Each committee member has a particular expertise which they share their knowledge on, and work to lead further improvements to the project in that area. The steering committee members are responsible for approving new best practices, and ensuring current best practices remain relevant.

### Collaborators 👍

Collaborators are members who are contributing to the repository on a regular basis, through suggesting new best practices, triaging issues, reviewing pull requests and more. Along with the steering committee, each collaborator leads a project tracked under our Github projects.

The role is in place to help the steering committee ensure that the content provided is of high standard, up-to-date with the industry, and available in many languages. Members who frequently participate in these activities will be invited to become a collaborator, based on the quality of their contributions.

The steering committee periodically reviews the collaborator list to identify inactive collaborators. Inactive collaborators can choose to either continue in or step down from their role, in which case they are acknowledged as a past collaborator. They may later request that the steering committee restore them to active status.
14 changes: 7 additions & 7 deletions .operations/.common-answers.md → .operations/common-answers.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
**Welcoming new translators**

@name - Welcome aboard, it's great to have you here 🎆
@name - Welcome aboard, it's great to have you here! 🎆

Having A Slovak translation could be awesome! At the end, we can Tweet about this, put in our news section, include your name at the top of the translated language and also at the main home page contributors list
Having A Slovak translation could be awesome! At the end, we can Tweet about this, put in our news section, include your name at the top of the translated language and also at the main home page contributors list.

Let's go for this? Few basic guideliness:

- Work on your own fork - Fork this repo, create a branch for yourself, translate & collaborate with other translators, then finally when ready create a PR
- Work on your own fork - Fork this repo, create a branch for yourself, translate & collaborate with other translators, then finally when ready create a PR.

- Focus on translation, not content editing - The focus is on translation, should you want to modify the content or the graphics - let's PR first in English and then translate to other languages. Also the format of the text should remain intact (same design)
- Focus on translation, not content editing - The focus is on translation, should you want to modify the content or the graphics - let's PR first in English and then translate to other languages. Also the format of the text should remain intact (same design).

- Duplicate the readme and the inner pages - Tthe content should be translated over a page duplication. Readme.MD became Readme.{translated-language}.MD (e.g. readme.french.md), all other files should be duplicated similarly. So the number of English & translated pages should be the same. You may see examples in currently translated languages
- Duplicate the readme and the inner pages - The content should be translated over a page duplication. readme.md became readme.{translated-language}.md (e.g. readme.french.md), all other files should be duplicated similarly. So the number of English & translated pages should be the same. You may see examples in currently translated languages.

Collaborate - once you do the basic setup (branch, duplicate pages), we can announce the work on a new language and get others involved and help you in translation (if you wish)
Collaborate - once you do the basic setup (branch, duplicate pages), we can announce the work on a new language and get others involved and help you in translation (if you wish).

We're here to help - let us know whether we can do anything to support you. We can Tweet about this work, put homepage banner or anything else
We're here to help - let us know whether we can do anything to support you. We can Tweet about this work, put homepage banner or anything else.