Rigi UI Previews app for macOS
Rigi UI Previews is a macOS desktop application that helps localization teams transform application screenshots into HTML previews for in-context translation.

To do so, the Rigi UI Previews app performs the following steps:
Captures screenshots from a selected application of any type.
Performs optical character recognition (OCR) to identify translatable text in the screenshots.
Matches the detected texts against your project's translation strings.
Generates HTML previews and uploads them to your Rigi project.
OS version requirement: macOS 12.0+
Download the required version of the Rigi UI Previews app via this link.
Install the Rigi UI Previews app on your local machine.
Grant the necessary permissions to the Rigi UI Previews app:
Open the Rigi UI Previews app.
In the Screen Recording popup, select Open System Settings.

In the Screen & System Audio Recording display, toggle the switch on the right for the Rigi UI Previews app.

Close and reopen the Rigi UI Previews app.
To start creating screenshots for your application, you must set up a new project in the Rigi UI Previews app. To do so, perform the following steps:
Open the project menu in the top left-hand corner of the display and select the New Project option.

If you are using the Rigi UI Previews app for the first time, you can also select the Create Project button in the Welcome to Rigi Capture popup.

In the New Project popup, enter the following details:
Your project's name.
The URL of the corresponding Rigi project.
The API key (for details, see Project settings – Access tokens).
Click the Test Connection button to check whether the Rigi UI Previews app has successfully connected to your Rigi project. If the connection is successful, the Sync Rigi Strings button will be displayed below.
Click the Sync Rigi Strings button to download translation strings from your Rigi project. These strings will be used to match the translatable text in the screenshots.
Required synchronization
We recommend synchronizing the strings before each capturing session. If the strings have never been synchronized, the sync required note will be displayed in the project menu and project settings menu.

Click the Create project button.
Your project can now be selected in the project menu in the Rigi UI Previews app.
Edit the project
To edit project details, perform the following steps:
Select the required project in the project menu in the top left-hand corner of the display.
Click the
icon next to the project menu, then select the Project Settings option.
The Edit Project popup will be displayed. In it you can:
modify basic project data.
test the connection with the linked Rigi project.
synchronize texts from the captured screenshots with the strings in a linked Rigi project.
delete the Rigi Capture project by clicking the
icon in the bottom left-hand corner.open the project folder by clicking the
icon in the bottom left-hand corner.
In the project settings menu, you can also do the following:
Synchronize the strings with the linked Rigi project by selecting the Sync Rigi Server option.
Access the Rigi UI Previews app documentation by selecting the Online help option.
To permit the Rigi UI Previews app to identify the translatable texts in your application, they must be marked with the following characters: [# #]. They can be marked automatically in a Rigi project if you perform the following steps:
Upload the source files to your Rigi project.
In the Rigi project menu, select Settings > Context > String recognition.

In the Rigi Token format dropdown, select OCR.
Click the Save button.
In the Rigi project menu, select Workspace > Files.
Click the Download files button at the top of the Files display.

In the Download files popup, select the Files with Rigi tokens checkbox.
Click the Next, then the Download button.
Upload the downloaded files to your application so the Rigi pseudo-language can be selected there.
Open the application from which you will capture screenshots on your local machine.
In the Rigi UI Previews app, select the required project in the project menu in the top left-hand corner.
In the project settings menu, select the Sync Rigi Server option to ensure that the downloaded Rigi strings are up to date.
Open the window dropdown on the top menu bar, and select the program in which your application is now running. Your choice will be saved, so next time you open this project, the same program will be preselected.

To capture a screenshot of the currently opened display of your application, click the Capture button in the top menu bar. The Rigi UI Previews app will take a screenshot and scan it for translatable text marked with
[# #]characters.After the capture, a thumbnail will appear in the Previews panel on the left, the preview will be displayed in the central panel, and the scanning results will appear in the Scan Results panel on the right.
Alternatively, you can paste or drop screenshots from your local machine directly into the Previews panel in the Rigi UI Previews app.
All the texts found in a screenshot by the Rigi UI Previews app will be divided into three sections:
Scanned text containing all the texts detected in the screenshot. To view all the scanned text in a screenshot, select the 'Screenshot' layer in the central panel by clicking the left-hand icon on the preview toolbar or by pressing the 'Tab' button on your keyboard. The defined texts will be marked with blue frames.

Translatable text containing all the texts marked as translatable, i.e., that can be linked to strings in your Rigi project. To view all the translatable texts in a screenshot, select the 'Preview' layer in the central panel by clicking the left-hand icon on the preview toolbar or by pressing the 'Tab' button on your keyboard. The translatable texts will be marked with green frames.

(Optional) Undetermined translatable containing texts that have been marked as translatable but could not be matched with the Rigi strings. Each entry in this section contains information about the occurred issue.
In the 'Preview' layer, the undetermined translatable texts will be marked with red frames.

Screenshot preview options
The preview toolbar located in the central panel below the screenshots offers the following options, from left to right:

Layer toggle to switch between the 'Screenshot' and 'Preview' layers.
Zooming options.
'Fit to window' button to scale the screenshot to fit the central panel.
'Actual size' button to display the screenshot at 100% size.
Border toggle to display or hide the text borders in the 'Preview' layer.
Review the texts in the Scan results panel, and, if necessary, edit translatable text properties. To create functional HTML previews, the Rigi UI Previews app will automatically determine the font size, weight, style, color, and alignment for each defined text. To change these details, select the required text in the Translatable text list, then select the Custom option.

Important
If you change the style of a specific text, this style will apply every time that text occurs in current or future screenshots.
To restore the automatically-defined settings, click the Reset to Automatic button at the bottom of the text properties section.
Important
You can only edit text properties for the most recently captured preview, the one that is currently displayed in the Rigi UI Previews app. After another preview is captured, it is no longer possible to edit the properties of the texts in the previous preview.
Capture and verify all the required previews as described in Steps 5 and 6. All the captured screenshots will appear in the Previews section on the left. To remove a screenshot, click the
icon in the top right-hand corner of that particular screenshot. To delete all screenshots, click theClick the Upload previews button in the top right-hand corner of the Rigi UI Previews app display.

All the captured screenshots, transformed into HTML previews, will be uploaded to the linked Rigi project and can then be used to translate and review in context.

Keyboard shortcuts
In the Rigi UI Previews app, you can use the following shortcuts:
Option–Shift–Cto capture the selected window.Command–Uto upload previews.Tabto toggle between 'Screenshot' and 'Preview' layers.Command–Minus signto zoom out.Command–Plus signto zoom in.Command–0to fit the screenshot to the window.Backspaceto delete the current screenshot.Command–Backspaceto delete all screenshots.