Robot Framework Browser Translation (Finnish + German)
This project provides language translations for the Robot Framework Browser library.
Currently supported languages:
- Finnish (
fi) viatranslation_fi.json - German (
de) viatranslation_de.json
The package is discovered by Browser through Python plugin naming conventions
(robotframework_browser_translation) and exposes get_language() with available
translation files.
This project uses Browser library
Python plugin API
to provide
translation files for the Browser library. The get_language() method returns a
list of dictionaries like this:
[
{"language": "de", "path": "/path/to/translation_de.json"},
{"language": "fi", "path": "/path/to/translation_fi.json"},
]
The languages are discovered from the translation_<language>.json files
shipped inside the package, sorted by language code.
Browser uses these values to select the requested language when Browser is imported.
Use In Robot Framework
Install the translation package (and Browser, if not installed yet):
pip install robotframework-browser robotframework-browser-translation
Then choose the language in the Browser import:
*** Settings ***
Library Browser language=fi
or:
*** Settings ***
Library Browser language=de
Developer Setup With UV
This repository includes uv in development requirements. A common local setup is:
uv venv
source .venv/bin/activate
uv pip install -e .
uv pip install -r requirements-dev.txt
Run checks/tests:
uv run invoke utest
uv run invoke lint
Add A New Language (Developer Workflow)
- Create a new translation file from Browser's current keywords:
uv run python -m Browser.entry translation robotframework_browser_translation/translation_xx.json
- Translate values in
nameanddocfields intranslation_xx.json. - Keep
sha256values as generated (they are used to detect upstream doc changes). - Register the new language in
robotframework_browser_translation/__init__.pyinsideget_language(). - Verify checksums and test suite:
uv run invoke utest
Optional checksum comparison against current Browser docs:
uv run rfbrowser translation --compare robotframework_browser_translation/translation_xx.json
Pytest Quickstart For This Project
This project keeps Python unit tests in utest/test_translation.py.
Useful commands:
uv run invoke utest
uv run pytest -q
uv run pytest -k checksum -q
How pytest works here:
- Test discovery: pytest collects functions whose names start with
test_. - Fixtures: reusable setup blocks (
language,translation_file,data) provide test inputs. - Parametrization: the
languagefixture runs dependent tests once per language discovered byget_language()(de,fi). - Assertion style: plain
assert ...statements are enough; pytest prints useful failure diffs.
Tip:
Adding a language means adding its translation_<language>.json file to
robotframework_browser_translation; it is
then discovered automatically and every check runs against it. The only other
place to update is EXPECTED_LANGUAGES in
utest/test_translation.py, which asserts which
languages this package promises to ship.
Detect changes in documentation
Each translation_xx.json contains a sha256 value for every keyword. The
checksum is generated from the original Browser library documentation and is
used to detect outdated or missing translations.
Use:
rfbrowser translation --compare robotframework_browser_translation/translation_xx.json
The command prints keywords that are missing from the translation file or need to be updated.
Contributors
Tatu Aalto 💻 📖 |
Florian Wellens 💻 📖 |
Release files for robotframework-browser-translation 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| robotframework_browser_translation-2.0.0.tar.gz | 127.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| robotframework_browser_translation-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 252.6 kB
Release files / robotframework_browser_translation-2.0.0.tar.gz
| Download URL | robotframework_browser_translation-2.0.0.tar.gz |
|---|---|
| Size | 127.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7cc5b4fa893931729c3beaadcbe120bf67ac7026a8ec5675e08e009e67241d4
|
|
BLAKE2b-256 checksum How to use checksums |
a7711a190afd06e7535ff4ba073a8da4bf1b9442f47cc3a20612ddec6e824754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / robotframework_browser_translation-2.0.0-py3-none-any.whl
| Download URL | robotframework_browser_translation-2.0.0-py3-none-any.whl |
|---|---|
| Size | 125.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
676eeaceaa3cdb0b5862d700e3d9cd15e7093da35cdf6bc569695b6a98b5a8c3
|
|
BLAKE2b-256 checksum How to use checksums |
0369e8c81480615c3165f3dd91cb8d730d3a04167f6936303ccfac4938810b36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log