An open API service indexing awesome lists of open source software.

https://github.com/marketsquare/robotframework-browser-translation

Browser library translation to Finnish
https://github.com/marketsquare/robotframework-browser-translation

language test-automation

Last synced: 7 months ago
JSON representation

Browser library translation to Finnish

Awesome Lists containing this project

README

          

# Finnish translation for Robot Framework Browser library
[![Version](https://img.shields.io/pypi/v/robotframework-browser-translation.svg)](https://pypi.python.org/pypi/robotframework-browser-translation)
![CI](https://github.com/MarketSquare/robotframework-browser-translation/actions/workflows/on-push.yml/badge.svg)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![All Contributors](https://img.shields.io/github/all-contributors/MarketSquare/robotframework-browser-translation?color=ee8449&style=flat-square)](#contributors)

This project contains a translations for the Robot Framework
[Browser](https://github.com/MarketSquare/robotframework-browser)
library. Currently project contains only one translation,
[Finnish](https://github.com/MarketSquare/robotframework-browser-translation/blob/main/robotframework_browser_translation/translation_fi.json)
, but new languages can be added by creating translation_xx.json file
and adding the file to
[__init__.py](https://github.com/MarketSquare/robotframework-browser-translation/blob/main/robotframework_browser_translation/__init__.py) file.

This project uses Browser library
[Python plugin API](https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/)
to provide
[translation_xx.json](https://github.com/MarketSquare/robotframework-browser-translation/blob/main/robotframework_browser_translation/translation_fi.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:

```python
[{"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:

```robotRobotFramework
*** Settings ***
Library Browser language=fi
```

## Detect changes in documentation
The
[translation_xx.json](https://github.com/MarketSquare/robotframework-browser-translation/blob/main/robotframework_browser_translation/translation_fi.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

💻 📖