File: localization.md

package info (click to toggle)
cookidoo-api 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,040 kB
  • sloc: python: 7,434; sh: 14; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# Available localizations

To extract the available localizations, we use the web application and extract the data from the html.

Open [<https://cookidoo.ch/foundation/en>](https://cookidoo.ch/foundation/en) and enter following command `navigator.clipboard.writeText(document.querySelector(".core-footer__language-select ul.core-dropdown-list").outerHTML)` into the console to extract the desired html, which will be copied to the clipboard. Should you run into permission issues, just use `console.log(document.querySelector(".core-footer__language-select ul.core-dropdown-list").outerHTML)` and copy it from the console output manually.

Paste it into the [`./raw/localization-extract.html`](https://github.com/miaucl/cookidoo/blob/master/raw/localization-extract.html) file.

Run following snippet [`../scripts/process-localization-extract.py`](https://github.com/miaucl/cookidoo/blob/master/scripts/process-localization-extract.py), or use the VSCode task, to extract the data and update the [`../cookidoo_api/localization.json`](https://github.com/miaucl/cookidoo/blob/master/cookidoo_api/localization.json).