Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

create README for lang/ - how to update translations

Kipras Melnikovasecc4e0b88966
diff --git a/lang/README.md b/lang/README.md
new file mode 100644
index 000000000..ef6966350
--- /dev/null
+++ b/lang/README.md
@@ -0,0 +1,19 @@
+### how to update
+
+1. find missing keys:
+
+```sh
+MINE=<your-lang>.json
+BASE=en-US.json
+
+jq 'keys' < $BASE > base
+jq 'keys' < $MINE > mine
+
+diff -c2 base mine
+# will print missing keys.
+# add them to $MINE
+```
+
+2. for each key, search in your editor where it is used, and additionally visit the [live demo website](https://app.umami.is/share/8rmHaheU/umami.is), to better understand the usage context.
+
+3. translate. though, if you don't fully understand the context of how a translation is used, note this in the PR review.