The GL Strings Chrome Extension facilitates the connection between the CLI-integrated GL Strings project and the dedicated test environment for translation live preview. The live preview provides a web, in-context solution for linguists and reviewers. It allows linguists to quickly review translations while simulating the same experience as a web app’s end-user. For more information on using the web live preview, see the documentation here.
includeInvisibleId
command in the target configuration.Install the extension from Chrome Web Store
(Recommended) Pin the extension to the Chrome Taskbar.
includeInvisibleId
command in the target configuration to get the right files for your webapp. To see some example Cli configurations for popular web frameworks see the Examples section.
Once you have the corresponding files from the CLI you can rebuild the Webapp with those files in place. Once complete, you must host the webapp so it is accessible to reviewers. See Usage for more details.
Link the Website to Preview
fieldPreview Website
button and a new tab will open with the Webapp in the selected language.Note To switch languages, open the Chrome extension in either the Project Tab or the Preview Tab and use the language dropdown to select another language.
While the Extension is connected to the project, users can open the Project tab and navigate to any language/entry to edit and preview changes. All changes to target translations will be immediately viewable via the extension in the Preview Tab.
Important Note
Our data is cached to help improve overall performance. If entries were recently changed in the GL Strings project, before starting the extension, the data may still be cached. You can either wait 15 minutes until the cache is updated, or use the live editing feature of the Extension to get around that.
These are minimal example configurations to pull your data from GL Strings and setup your Project to be usable with the GL Strings Chrome Extension. If you need a more advanced setup please refer to the CLI Integration Documentation.
{
"app": {
"access_token": "<your access token>",
"base_language": "en",
"pull": {
"target": [
{
"file_format": "angular_translate_json",
"path": "./locale-<language>.json",
"includeInvisibleId": true
}
]
}
}
}
{
"app": {
"access_token": "<your access token>",
"base_language": "en",
"pull": {
"target": [
{
"file_format": "nested_json",
"path": "./<language>.json",
"includeInvisibleId": true
}
]
}
}
}
{
"app": {
"access_token": "<your access token>",
"base_language": "en",
"pull": {
"target": [
{
"file_format": "react_nested_json",
"path": "./<language>.json",
"includeInvisibleId": true
}
]
}
}
}
{
"app": {
"access_token": "<your access token>",
"base_language": "en",
"pull": {
"target": [
{
"file_format": "ruby_on_rails_yaml",
"path": "./<language>.yaml",
"includeInvisibleId": true
}
]
}
}
}