I hereby claim:
- I am hawx on github.
- I am hawx (https://keybase.io/hawx) on keybase.
- I have a public key ASD8XrovFOPizoGwLG8dtAm7RyqQAHPjqyAYnqYaHy61Bgo
To claim this, I am signing this object:
| interface HelpScout { | |
| beacon: HelpScoutBeacon; | |
| } | |
| interface HelpScoutBeacon { | |
| config(configObject: HelpScoutConfig): void; | |
| ready(handler: () => void): void; | |
| open(): void; | |
| close(): void; | |
| toggle(): void; |
I hereby claim:
To claim this, I am signing this object:
This tool will generate a CSV report from language files of each key, its variations,
and when each was modified (via git blame).
translation-tool -git-repo ~/projects/opg-modernising-lpa ~/projects/opg-modernising-lpa/app/lang/* > ~/Desktop/translation-report.csv
| #!/usr/bin/env sh | |
| for k in `cat lang/en.json | jq -r 'keys|join("\n")'`; | |
| do | |
| COUNT=`git grep $k | grep -v '.json:' | wc -l` | |
| if [ $COUNT = 0 ]; then | |
| echo $k | |
| fi | |
| done |
| // Replace values takes two JSON files as inputs, it will replace the values of | |
| // the keys of the first file using the values from the second. This is built | |
| // for the first file to be a download of untranslated keys from Weblate, and | |
| // the second file to be our language file. | |
| // | |
| // Given files keys.json: | |
| // | |
| // { "a": 1 } | |
| // | |
| // and values.json: |
| package main | |
| import ( | |
| "io" | |
| "os" | |
| ) | |
| type Attr map[string]string | |
| func (a Attr) writeTo(w io.Writer) error { |
| // This design would allow us to have 1- or 2-depth nested templates. | |
| // | |
| // Everything uses rootTmpl, and everything has access to all | |
| // componentTmpls. But each combinedTmpl only uses the named template in | |
| // layoutTmpls, except `page-*` which are defined under rootTmpl only. | |
| package main | |
| import ( | |
| "fmt" | |
| "os" |
| $govuk-assets-path: "/static/assets/"; | |
| .app-progress-bar { | |
| margin-bottom: govuk-spacing(7); | |
| } | |
| .app-progress-bar__list { | |
| font-size: 0; // Stop the connecting line from extending past the last item | |
| list-style: none; | |
| padding: 0; |