Skip to main content

Robot Framework Browser Translation (Finnish + German + French)

Version CI License All Contributors

This project provides language translations for the Robot Framework Browser library.

Currently supported languages:

  • Finnish (fi) via translation_fi.json
  • German (de) via translation_de.json
  • French (fr) via translation_fr.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"},
    {"language": "fr", "path": "/path/to/translation_fr.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

or, for French:

*** Settings ***
Library    Browser    language=fr

*** Test Cases ***
Open A Page In French
    Ouvrir Une Nouvelle Page    https://robotframework.org

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)

  1. Create a new translation file from Browser's current keywords:
uv run python -m Browser.entry translation robotframework_browser_translation/translation_xx.json
  1. Translate values in name and doc fields in translation_xx.json.
  2. Keep sha256 values as generated (they are used to detect upstream doc changes).
  3. Register the new language in robotframework_browser_translation/__init__.py inside get_language().
  4. 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 language fixture runs dependent tests once per language discovered by get_language() (de, fi, fr).
  • 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
Tatu Aalto

💻 📖
Florian Wellens
Florian Wellens

💻 📖

Metadata

Release files for robotframework-browser-translation 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for robotframework-browser-translation 2.2.0
File Size Uploaded
robotframework_browser_translation-2.2.0.tar.gz 207.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-browser-translation 2.2.0
File Interpreter ABI Platform
robotframework_browser_translation-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 413.1 kB

Release files / robotframework_browser_translation-2.2.0.tar.gz

Download URL robotframework_browser_translation-2.2.0.tar.gz
Size 207.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13d9fbb6787c25de8baddb6fb7037296aa2253f605ec4dd4095af1cda26effa9
BLAKE2b-256 checksum
How to use checksums
8ae92f7c6a182577cebedb644483eeab319463f8a4ab3dd749bb1afb031fcf54
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 Oct 6, 2026.

Transparency log

Release files / robotframework_browser_translation-2.2.0-py3-none-any.whl

Download URL robotframework_browser_translation-2.2.0-py3-none-any.whl
Size 205.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80e0d0bd95e3eb2efbd8c4ab882aa6da3eedd0f32ef7c54d1c9542dcf512c632
BLAKE2b-256 checksum
How to use checksums
c256d25aae24a6f8ffbb924b1a714aa9cbe02d12507dba36c3e525613df88e9b
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 Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

2.2.1

2 release files

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page