This project contains a transations for the Robot Framework Browser libary. Currently project contais 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
fulfils the Browser library translation API and provides get_language
metghod. The method return a list of dictionries:
[{"language": "fi", "path": "/path/to/translation.json"}]
Which Browser library will use to match correct translation from all the found Python plugins. Languea search is enabled when Browser library is imported with:
*** Settings ***
Library Browser languege=fi
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
fbrowser 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.
Tatu Aalto 💻 📖 |