Skip to content

Commit

Permalink
static/i18n: Use 4 space indents
Browse files Browse the repository at this point in the history
Weblate uses four space indents for its i18n data files,
so the manually created data files should be the same style.

Related to #124
  • Loading branch information
jayvdb committed Jan 2, 2018
1 parent 067105f commit d62495e
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 61 deletions.
10 changes: 8 additions & 2 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ files = templates/*.html
bears = HTMLLintBear
htmllint_ignore = optional

[json]
[all.json-i18n]
files = static/i18n/**
bears = JSONFormatBear
indent_size = 4
default_actions = *: ApplyPatchAction

[all.json]
files = *.json
ignore = tests/__data__/**, package-lock.json
ignore += static/i18n/**
bears = JSONFormatBear
indent_size = 2
default_actions = *: ApplyPatchAction
Expand Down
42 changes: 21 additions & 21 deletions static/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"page-title": "Google Code-in 2017 Current Leaders",
"last-updated": "Last updated",
"order-info": "The leading participants for each organization (and their GitHub accounts, if applicable) are listed randomly.",
"tasks-completed": "Tasks Completed",
"gci-copyright": "Google Code-in and the Google Code-in logo are trademarks of Google Inc.",
"gitlab-copyright-1": "The GitLab logo is licensed under",
"gitlab-copyright-2": "by GitLab Inc.",
"orgs-no-listed": "Organization(s) with no listed leaders",
"passed": "$1% passed, approximately $2 before task claiming ends",
"seconds-ago": "$1 {{PLURAL:$1|second|seconds}} ago",
"minutes-ago": "$1 {{PLURAL:$1|minute|minutes}} ago",
"hours-ago": "$1 {{PLURAL:$1|hour|hours}} ago",
"days-ago": "$1 {{PLURAL:$1|day|days}} ago",
"months-ago": "$1 {{PLURAL:$1|month|months}} ago",
"years-ago": "$1 {{PLURAL:$1|year|years}} ago",
"seconds": "$1 {{PLURAL:$1|second|seconds}}",
"minutes": "$1 {{PLURAL:$1|minute|minutes}}",
"hours": "$1 {{PLURAL:$1|hour|hours}}",
"days": "$1 {{PLURAL:$1|day|days}}",
"months": "$1 {{PLURAL:$1|month|months}}",
"years": "$1 {{PLURAL:$1|year|years}}"
"page-title": "Google Code-in 2017 Current Leaders",
"last-updated": "Last updated",
"order-info": "The leading participants for each organization (and their GitHub accounts, if applicable) are listed randomly.",
"tasks-completed": "Tasks Completed",
"gci-copyright": "Google Code-in and the Google Code-in logo are trademarks of Google Inc.",
"gitlab-copyright-1": "The GitLab logo is licensed under",
"gitlab-copyright-2": "by GitLab Inc.",
"orgs-no-listed": "Organization(s) with no listed leaders",
"passed": "$1% passed, approximately $2 before task claiming ends",
"seconds-ago": "$1 {{PLURAL:$1|second|seconds}} ago",
"minutes-ago": "$1 {{PLURAL:$1|minute|minutes}} ago",
"hours-ago": "$1 {{PLURAL:$1|hour|hours}} ago",
"days-ago": "$1 {{PLURAL:$1|day|days}} ago",
"months-ago": "$1 {{PLURAL:$1|month|months}} ago",
"years-ago": "$1 {{PLURAL:$1|year|years}} ago",
"seconds": "$1 {{PLURAL:$1|second|seconds}}",
"minutes": "$1 {{PLURAL:$1|minute|minutes}}",
"hours": "$1 {{PLURAL:$1|hour|hours}}",
"days": "$1 {{PLURAL:$1|day|days}}",
"months": "$1 {{PLURAL:$1|month|months}}",
"years": "$1 {{PLURAL:$1|year|years}}"
}
38 changes: 19 additions & 19 deletions static/i18n/es.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"page-title": "Líderes actuales de Google Code-in 2017",
"last-updated": "Última actualización",
"order-info": "Los participantes líderes de cada organización (y sus respectivas cuentas de GitHub) están listados de forma aleatoria.",
"tasks-completed": "Tareas completadas",
"gci-copyright": "Google Code-in y su logotipo son marcas registradas de Google Inc.",
"orgs-no-listed": "Organizacion(es) sin listado de líderes",
"passed": "$1% completado, aproximadamente $2 hasta que termine el periodo de tareas",
"seconds-ago": "hace $1 {{PLURAL:$1|segundo|segundos}}",
"minutes-ago": "hace $1 {{PLURAL:$1|minuto|minutos}}",
"hours-ago": "hace $1 {{PLURAL:$1|hora|horas}}",
"days-ago": "hace $1 {{PLURAL:$1|día|días}}",
"months-ago": "hace $1 {{PLURAL:$1|mes|meses}}",
"years-ago": "hace $1 {{PLURAL:$1|año|años}}",
"seconds": "$1 {{PLURAL:$1|segundo|segundos}}",
"minutes": "$1 {{PLURAL:$1|minuto|minutos}}",
"hours": "$1 {{PLURAL:$1|hora|horas}}",
"days": "$1 {{PLURAL:$1|día|días}}",
"months": "$1 {{PLURAL:$1|mes|meses}}",
"years": "$1 {{PLURAL:$1|año|años}}"
"page-title": "Líderes actuales de Google Code-in 2017",
"last-updated": "Última actualización",
"order-info": "Los participantes líderes de cada organización (y sus respectivas cuentas de GitHub) están listados de forma aleatoria.",
"tasks-completed": "Tareas completadas",
"gci-copyright": "Google Code-in y su logotipo son marcas registradas de Google Inc.",
"orgs-no-listed": "Organizacion(es) sin listado de líderes",
"passed": "$1% completado, aproximadamente $2 hasta que termine el periodo de tareas",
"seconds-ago": "hace $1 {{PLURAL:$1|segundo|segundos}}",
"minutes-ago": "hace $1 {{PLURAL:$1|minuto|minutos}}",
"hours-ago": "hace $1 {{PLURAL:$1|hora|horas}}",
"days-ago": "hace $1 {{PLURAL:$1|día|días}}",
"months-ago": "hace $1 {{PLURAL:$1|mes|meses}}",
"years-ago": "hace $1 {{PLURAL:$1|año|años}}",
"seconds": "$1 {{PLURAL:$1|segundo|segundos}}",
"minutes": "$1 {{PLURAL:$1|minuto|minutos}}",
"hours": "$1 {{PLURAL:$1|hora|horas}}",
"days": "$1 {{PLURAL:$1|día|días}}",
"months": "$1 {{PLURAL:$1|mes|meses}}",
"years": "$1 {{PLURAL:$1|año|años}}"
}
38 changes: 19 additions & 19 deletions static/i18n/pl.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"page-title": "Obecni liderzy Google Code-in 2017",
"last-updated": "Ostatnio aktualizowano",
"order-info": "Uczestnicy na prowadzeniu z każdej organizacji (i ich konta na GitHubie, jeśli dotyczy) wypisani są w kolejności losowej.",
"tasks-completed": "Ukończone zadania",
"gci-copyright": "Google Code-in i logo Google Code-in są znakami towarowymi Google Inc.",
"orgs-no-listed": "Organizacje bez wypisanych liderów",
"passed": "Ukończono $1%, pozostało około $2 do końca zajmowania zadań",
"seconds-ago": "$1 {{PLURAL:$1|sekunda|sekundy|sekund}} temu",
"minutes-ago": "$1 {{PLURAL:$1|minuta|minuty|minut}} temu",
"hours-ago": "$1 {{PLURAL:$1|godzina|godziny|godzin}} temu",
"days-ago": "$1 {{PLURAL:$1|dzień|dni}} temu",
"months-ago": "$1 {{PLURAL:$1|miesiąc|miesiące|miesięcy}} temu",
"years-ago": "$1 {{PLURAL:$1|rok|lata|lat}} temu",
"seconds": "$1 {{PLURAL:$1|sekunda|sekundy|sekund}}",
"minutes": "$1 {{PLURAL:$1|minuta|minuty|minut}}",
"hours": "$1 {{PLURAL:$1|godzina|godziny|godzin}}",
"days": "$1 {{PLURAL:$1|dzień|dni}}",
"months": "$1 {{PLURAL:$1|miesiąc|miesiące|miesięcy}",
"years": "$1 {{PLURAL:$1|rok|lata|lat}}"
"page-title": "Obecni liderzy Google Code-in 2017",
"last-updated": "Ostatnio aktualizowano",
"order-info": "Uczestnicy na prowadzeniu z każdej organizacji (i ich konta na GitHubie, jeśli dotyczy) wypisani są w kolejności losowej.",
"tasks-completed": "Ukończone zadania",
"gci-copyright": "Google Code-in i logo Google Code-in są znakami towarowymi Google Inc.",
"orgs-no-listed": "Organizacje bez wypisanych liderów",
"passed": "Ukończono $1%, pozostało około $2 do końca zajmowania zadań",
"seconds-ago": "$1 {{PLURAL:$1|sekunda|sekundy|sekund}} temu",
"minutes-ago": "$1 {{PLURAL:$1|minuta|minuty|minut}} temu",
"hours-ago": "$1 {{PLURAL:$1|godzina|godziny|godzin}} temu",
"days-ago": "$1 {{PLURAL:$1|dzień|dni}} temu",
"months-ago": "$1 {{PLURAL:$1|miesiąc|miesiące|miesięcy}} temu",
"years-ago": "$1 {{PLURAL:$1|rok|lata|lat}} temu",
"seconds": "$1 {{PLURAL:$1|sekunda|sekundy|sekund}}",
"minutes": "$1 {{PLURAL:$1|minuta|minuty|minut}}",
"hours": "$1 {{PLURAL:$1|godzina|godziny|godzin}}",
"days": "$1 {{PLURAL:$1|dzień|dni}}",
"months": "$1 {{PLURAL:$1|miesiąc|miesiące|miesięcy}",
"years": "$1 {{PLURAL:$1|rok|lata|lat}}"
}

0 comments on commit d62495e

Please sign in to comment.