You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

robotframework-seleniumlibrary-translation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robotframework-seleniumlibrary-translation

Robot Framework SeleniumLibrary localization project for all translations.

1.0.3
pipPyPI
Maintainers
1

SeleniumLibrary localisation project

This project contains a localizations for the Robot Framework SeleniumLibrary. Currently project contains only one translation, Finnish , but new languages can be added by creating translation_xx.json file and adding the definition to init.py file. The xx should be replaced with correct language code.

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

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

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

*** Settings ***
Library    SeleniumLibrary    language=fi

Detect changes in documentation

The translation_xx.json contains sha256 sum, which is generated by the SeleniumLibrary. The sha256 is the checksum of the original documentation of the SeleniumLibrary documentation. The checksum is used by sellib translation --compare robotframework_seleniumlibrary_translation/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.

Keywords

Robot Framework

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts