If you enjoy my Google Workspace Apps Script work, please consider buying me a cup of coffee!
Demonstration Google Apps Script which translates Cambodian Khmer to English through a Google Form using Google Translate. An email containing both the Khmer text and English translation is automatically sent to the form owner each time a user submits to the form.
Follow these instructions to install the TSTranslateKhmer script and host form into your Google Drive:
-
Login to your Google Drive.
-
Access the TSTranslateKhmer form.
-
Click the Use Template button. This will copy the form to your Google Drive.
See the TSTranslateKhmer documentation
Important Usage Notes:
-
The Khmer text portion of the email may only be viewable in certain browsers such as Chrome. Other desktop or mobile browsers may not display the Khmer text.
-
Google Apps Scripts are subject to daily quota limits including the number of emails sent. See the Quota Limits tab of the Google Apps Script Dashboard for more information.
-
TSTranslateKhmer may not be appropriate for high traffic forms, especially in cases where the form owner consistently receives quota limit exceeded notifications.
Contributions are welcome. Please take a moment to review the guidelines for contributing and check the Change log for any existing updates.
Edit src/tstranslatekhmer.coffee for all changes to dist/code.gs and use Gulp to build. See the Using CoffeeScript and Gulp section below for more information.
Edit .html
files directly in the dist/ directory.
Ensure that Node.js and npm are installed on your system. NOTE: Most Node.js installers include npm.
To install dependencies, run the following command from the project's root directory (you may need to run sudo npm install
depending upon your environment):
$ npm install
Install Gulp globally. (You may need to run sudo npm install --global gulp
depending upon your environment):
$ npm install --global gulp
Code:
To build code, edit the source and run the following command from the project's root directory:
$ gulp
While developing, the gulp dev
task may be useful. Run the following command from the project's root directory:
$ gulp dev
You can find gulp tasks in the gulpfile.
Copyright 2014 Laura Taylor
Licensed under the Apache License, Version 2.0 (the "License"); you may not use the files except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.