VRHandsFrame – Installation of the translation server (GAS)


Deployment of personal translation servers

VRHandsFrame’s translation functionality is by default based on a single translation server that is shared by all users.
Since the translation server uses a service called Google App Script (GAS), the number of translations is limited (5000 times/day). In other words, in the default state, 5000 times/day of translation resources are shared by all users.

This page explains how to use GAS to deploy a personal translation server in VRHandsFrame.
By using your own personal translation server, each user can use the full 5000 times/day translation resource.

*These are the installation procedures as of May 2023; changes in Google’s specifications or updates to VRHandsFrame may result in changes to the procedures.


  1. Create a Google account and sign in
  2. Set the translation script in GAS and get a Deployment ID
  3. Set Deployment ID (GAS Key) to VRHandsFrame

1. Create a Google account and sign in

Please create a Google account and log in.
If you already have an account, you do not need to create a new account.

2.Set the translation script in GAS and get a Deployment ID

Open this link and click on “New project” in the upper right corner to
Open the Create New Project page.

Copy the script below and overwrite the script set up in the new project.

function doPost(e) {
var p = JSON.parse(e.postData.getDataAsString());
var translatedText = LanguageApp.translate(p.text, p.source, p.target);
return ContentService.createTextOutput(translatedText);

Overwrite the script and save the project.

Next, click the blue “Deploy” button in the upper right corner and select “New deployment”.

Click on the gear icon in the upper left corner and select “Web app”.

Enter some description in the “New Description” field.

Change the “Who has access” field to “Anyone“.

Do not change the “Execute as” field.
(Make sure your Gmail address is filled in).

When you have finished making changes to the input fields, click the Blue “Deploy” button in the lower right corner to proceed.

On the next window, copy the “Deployment ID”.

Finally, click the “Done” button to complete the deployment.

If you want to check the “Deployment ID” of a deployed project later, you shall select “Manage deployments” .

3. Set Deployment ID (GAS Key) to VRHandsFrame

Set the “Deployment ID” copied in step 2 in VRHandsFrame.

Right-click the icon in the task tray and select [Preference] from the displayed menu.

Enter the “deployment ID” in the text box of [API Key Settings > Translation > Google App Script] and click OK.

This completes the settings for using the personal translation server of GAS.