Supported Languages
The languages currently supported by Product Rentals Pro
Product Rentals Pro automatically translates to the following languages:
English
Danish
Dutch
French
German
Greek
Icelandic
Italian
Japanese
Polish
Spanish
Turkish
The app will automatically update text such as warning messages, button texts and more.
Other texts are configurable by you, so you can set them in the language you require. This includes things such as variant names, delivery method names, start and end date labels and text blocks above and below the calendar. These are either set in the PRP Admin (Settings > Rental Settings) or in the Theme Customizer (select the PRP Rental Widget to see the configuration options available).
If you require a language not listed above, please let us know! We can usually add new languages quite easily and we should be able to deploy it to the live app within a couple of days!
Require Multiple Languages?
Need your site to operate in multiple languages, not just your base language?
The standard text and booking calendar of the PRP rental widget will automatically translate when your site is set, or switched, to a particular language - provided it is one of the supported languages listed above.
Some other text is configured by you, such as the text above and below the calendar for each delivery method. These are configuration options of the PRP rental widget. There's a bit of effort required to make your own text translatable when the language is switched on your website.
The basic steps are:
create a new metaobject on your store, add an entry, and set the values
set up translations for each of the values
reference the metaobject in the PRP rental widget app block settings
PRP doesn't support Automated Translate & Adapt by Shopify. Shopify runs this process each site individually and the results can be unpredictable. At times, it has resulted in Shopify translating some javascript code that is not intended for public display, in turn breaking features of the PRP rental widget. To translate widget text to multiple languages, use the process described below.
Note that currently there is some text displayed within the widget that cannot work with multiple languages - such as the Rental Start Date label and the Rental End Date label. These are configured by you in the PRP > Settings > Rental Settings screen. Their values on your website must match what you've entered within the settings screen, otherwise a rental won't be created in PRP when the order is completed.
Creating the metaobject and entry
Go to Shopify Settings > Metafields and Metaobjects > Metaobject Definitions, and click Add Definition.
Give the new metaobject defintion a name of prp_widget_text or something similar.
In the Fields list, add a new one for each configuration field you want to include different text depending on the language. For example: - name (include this just to give the entry a name) - text_above_calendar_post - text_below_calendar_post - text_above_calendar_pickup - text_below_calendar_pickup etc
Make the settings of each One value and field type Single-line Text
Ensure Translations is on in the Metaobject options below
Save the Metaobject defintion
Click Add Entry at the top of screen
Enter the values for each of the fields in your base/primary language. Put "main" in the name field.
Save
Setting up translations for each of the entry values
Whilst viewing the metaobject entry, click More Actions at the top of screen and select Localize
Now you can enter the equivalent text in each of the languages you have activated in Shopify. You can toggle between languages with the control at the top. E.g. Translating [language] v

Once all translations have been entered, Save.
Reference the metaobject entry in the PRP rental widget settings
Go to the Theme Customizer and navigate to your product page template used for rentals
Select the PRP Rental Widget within the template. The configuration options of the widget will appear in the left or right column.
Go to the field you want to support translation for, such as "Text above calendar - post"
Click the Connect dynamic source button at the top right of the field:

Go to Metaobjects > prp_widget_text > Main and select the field you want to use. You might need to click back on the popup to get back to Metaobjects.

The dynamic text gets placed into the PRP Rental Widget configuration field.

Save the template.
Now when you use the language switcher on your website, the text will appear according to the translations you set up in the previous step!
Reference the metaobject entry with Liquid code
If the field you want to enter the value into doesn't have the Connect Dynamic Source button, you can use liquid code. For example, in the Custom CSS box.
In some cases you may want to use the ::after pseudo selector to place some text somewhere into the rental widget or page, via the content property. You could reference the shop metaobject within the CSS code, like so:
Last updated