Scope
How to edit the field names of additional language on the checkout page?
Is there any option to edit the titles of the custom language on the customer's portal?
What are the steps to change the payment method field using the language pack?
Summary
For language translation on the checkout and self-serve portal fields, you need to download the ‘Language Pack’ from Settings > Configure Chargebee > Languages. You can update the checkout and self-serve portal field names by updating the content on Column B in the hosted_pages_v3.csv file from the Internal folder.
Optional Folder
This folder contains files with field names that are already translated if default translation is provided for the language by Chargebee. You can choose to override it. For other languages, however, there will be no pre-translated values and you need to provide them.
The translation files included in this folder are:
Checkout
Self-serve portal
This folder contains files with field names that are already translated if default translation is provided for the language by Chargebee. You can choose to override it. For other languages, however, there will be no pre-translated values and you need to provide them.
The translation files included in this folder are:
Checkout
Self-serve portal
For the English language, by default you can edit the button field names on checkout and portal from Settings > Configure Chargebee > Checkout & Self-Serve Portal > Labels. Refer to this link for more information.
Solution
Step 1: To translate Checkout & Portal buttons’ field names, navigate to Settings > Configure Chargebee > Languages. Download the language pack and translate all the values in the language pack and upload it to the same page.
Step 2: Once exported, unzip the downloaded pack. Navigate to the respective language folder. Then go to Optional > hosted_pages_text_configurations.csv.
Note: Language folders will be in the code name, say for example fr-French, en-English & de-German. Refer to this link for more information.
Step 3: Open the hosted_pages_v3.csv file in an editable format and change the relevant field under the ‘Value’ column i.e, Column B.
In the internal folder of the language pack (under the specific language), you can go to the file “hosted_pages_v3” and give the new label name in the “value” column.
For In-app checkout it's hosted pages v3, for Single-page checkout it's hosted pages v2 & for Full-page checkout it's hosted pages v4.
For example, to rename the credit card label, provide value for the field “hp_v3.inapp_checkout.credit_card” and for google pay, you can input the new value for the field “hp_v3.pm.google_pay”. Please find the screenshot highlighting the available payment methods. Note, that the payment method will be available as per the configuration available on your site.
Note: You can edit this csv file either in a text editor or in Google sheets. Remember to save the file in the .csv extension only
Step 4: Once the translation text is entered, upload the pack (only .zip format is supported)
In case, there are errors, the errors will be displayed and you can review the errors and fix them, before uploading the updated folder.
Refer to this link for more information.