Skip to content

MarketSquare/robotframework-browser-translation

Repository files navigation

Finnish translation for Robot Framework Browser library

Version CI License All Contributors

This project contains a translations for the Robot Framework Browser library. Currently project contains only one translation, Finnish , but new languages can be added by creating translation_xx.json file and adding the file to init.py file.

This project uses Browser library Python plugin API to provide translation_xx.json file for the Browser library. Browser library searches Python plugins by using naming convention: robotframework_browser_translation. This module fulfills the Browser library translation API and provides get_language method. The method return a list of dictionaries:

[{"language": "fi", "path": "/path/to/translation.json"}]

Which Browser library will use to match correct translation from all the found Python plugins. Language search is enabled when Browser library is imported with:

*** Settings ***
Library    Browser    language=fi

Detect changes in documentation

The translation_xx.json contains sha256 sum, which is generated by the Browser library. The sha256 is the checksum of the original documentation of the Browser library documentation. The checksum is used by rfbrowser translation --compare robotframework_browser_translation_fi/translation.json command to compare translation between the library and translation file. Command will display a list of keywords which needs updating or are missing from the translation.json file.

Contributors

Tatu Aalto
Tatu Aalto

💻 📖