GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MarketSquare/robotframework-browser-translation: Browser library translation to Finnish

BranchesTags
Open more actions menu

Latest commit

 

History

260 Commits
260 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude/skills/update-translations
.claude/skills/update-translations
 
 
.github
.github
 
 
atest
atest
 
 
docs/adr
docs/adr
 
 
robotframework_browser_translation
robotframework_browser_translation
 
 
utest
utest
 
 
.all-contributorsrc
.all-contributorsrc
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTEXT.md
CONTEXT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements-dev.txt
requirements-dev.txt
 
 
robot.toml
robot.toml
 
 
tasks.py
tasks.py
 
 
translation_tools.py
translation_tools.py
 
 

Repository files navigation

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. Add the language code to EXPECTED_LANGUAGES in utest/test_translation.py.
  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

💻 📖

About

Browser library translation to Finnish

Topics

languagetest-automation

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

4 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.