Robot Framework Browser library translation to Finnish languege
Project description
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": "fi", "path": "/path/to/translation_fi.json"},
{"language": "de", "path": "/path/to/translation_de.json"},
]
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 (fi,de). - Assertion style: plain
assert ...statements are enough; pytest prints useful failure diffs.
Tip:
If you add a new language, add its code to SUPPORTED_LANGUAGES in utest/test_translation.py so the same checks run automatically.
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 💻 📖 |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_browser_translation-1.0.0.tar.gz.
File metadata
- Download URL: robotframework_browser_translation-1.0.0.tar.gz
- Upload date:
- Size: 129.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72d077454b54363edbdc2898c988dd196cbb1f13d9497572b36775e010da36ac
|
|
| MD5 |
61c9e21281c6388fbe06c65b839e1af0
|
|
| BLAKE2b-256 |
94badcdcf4b8c62e3949dcaca00b738f86dd0e70cd811bd7dd42a6f1c4128031
|
Provenance
The following attestation bundles were made for robotframework_browser_translation-1.0.0.tar.gz:
Publisher:
release.yml on MarketSquare/robotframework-browser-translation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robotframework_browser_translation-1.0.0.tar.gz -
Subject digest:
72d077454b54363edbdc2898c988dd196cbb1f13d9497572b36775e010da36ac - Sigstore transparency entry: 1155004466
- Sigstore integration time:
-
Permalink:
MarketSquare/robotframework-browser-translation@f0059089a056c9d35761ca077665a0d4c3dccbc5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MarketSquare
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f0059089a056c9d35761ca077665a0d4c3dccbc5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file robotframework_browser_translation-1.0.0-py3-none-any.whl.
File metadata
- Download URL: robotframework_browser_translation-1.0.0-py3-none-any.whl
- Upload date:
- Size: 127.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e64e754abf12a5b30c7c773376cc2854554301878a5b738bf149e4a7ae9f6f48
|
|
| MD5 |
d17bee46de0a007c60a6c577efc0d637
|
|
| BLAKE2b-256 |
87161bb3d3fb467eff8fb2980568540dd049420dca72e954a056d0aa9cf1e619
|
Provenance
The following attestation bundles were made for robotframework_browser_translation-1.0.0-py3-none-any.whl:
Publisher:
release.yml on MarketSquare/robotframework-browser-translation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robotframework_browser_translation-1.0.0-py3-none-any.whl -
Subject digest:
e64e754abf12a5b30c7c773376cc2854554301878a5b738bf149e4a7ae9f6f48 - Sigstore transparency entry: 1155004467
- Sigstore integration time:
-
Permalink:
MarketSquare/robotframework-browser-translation@f0059089a056c9d35761ca077665a0d4c3dccbc5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MarketSquare
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f0059089a056c9d35761ca077665a0d4c3dccbc5 -
Trigger Event:
push
-
Statement type: