AIIntermediate

Translating School Emails into Japanese Automatically with Claude

Listen to this article(4 min)

Every time an English school notice lands in your inbox, you copy the text into a translator and pass the Japanese version on to your family. One email is manageable. When several come in, it adds up.

To read those notices in Japanese together without translating each one by hand, try collecting them in Gmail and letting Claude do the translating.

Google Apps Script (GAS) is a free Google service that runs small programs. Think of it as the place where you put someone in charge of checking the mailbox. The program looks in Gmail every five minutes, sends new messages to Claude to translate, and emails you the Japanese version.

You’ll need the account that already receives the messages and a Gmail account to collect the ones you want translated. The program uses an API to ask Claude to do the work, like going to a service desk. An API key is the password that lets it use that desk. Try one test email to see that the body comes through in Japanese, then you can move on to attachments and replying in English.

My wife and I have been getting school notices this way since October 14, 2026. I asked Claude to write the program and pasted it into Google’s editor. Before you get to the code, decide which messages you want to go into that Gmail mailbox.

1. The school sends an email in English. 2. The email is forwarded to Gmail. 3. Google Apps Script checks for new mail every five minutes. 4. Claude translates it. 5. Both parents get the Japanese version. 6. Gmail marks the original as translated.
How a school email reaches us in Japanese. The two steps in yellow run automatically.

Collect the emails you want to translate in Gmail

I forward school notices from the address I registered with the school to Gmail. Forwarding is like passing a letter along to another mailbox.

Open the forwarding settings in the email service where you get those messages now. Set it to match the sender you want to translate and forward those messages to your Gmail address.

Once you’ve checked that the English emails reach Gmail, you’re ready to set up the program that checks Gmail and asks Claude to translate them.

Create an API key and ask Claude to write the program

Once the original email is reaching Gmail, you can set up the part that asks Claude to translate it.

First, create an API key so your program can call Claude. Claude Console is where you manage access to Claude from a program. Think of it as the place where you sign up to use that service desk.

Open Claude Console, go to the API keys page, and create a key. You pay for what you use through the API, separately from your usual monthly Claude plan. Treat the key like a key to your home and keep it private.

Next, ask Claude to write the program. Code is a set of instructions a program follows. Here, it’s a checklist that says which emails to find, how to translate them, and who should get them.

I asked Claude Code, a version of Claude that helps with coding. You can also ask in a regular Claude chat. Here’s how to ask for a version that only translates the email body.

Write a Google Apps Script that finds new Gmail messages from a sender I specify, uses Claude to translate them into Japanese, and sends the translations to me. Translate only the body and keep the same order as the original. Include a setup function that schedules the script to run every five minutes, and tell me what name to use when I save my API key in the settings.

Tell Claude the sender’s address, who should get the Japanese version, and what kind of translation you want. I asked for just the translated body, without a summary or extra notes. Keeping the same order makes it easier to compare with the original later.

Paste the code into Google Apps Script and add your API key

When Claude gives you the code, give it a place to run and put the key in the project’s settings.

Open script.google.com in your browser and create a new project. A project is like a folder that keeps your code and settings together. Clear the editor and paste in the code Claude gave you.

Open Project Settings in the left menu and scroll down to Script Properties. Think of Script Properties as a drawer for settings you keep separate from the code.

Example Google Apps Script screen. Open Project Settings from the left menu. In Script Properties, enter the name Claude gave you in the property field and the API key in the value field, then save.
In Project Settings, open Script Properties. Use the name Claude gave you and enter the API key as the value. This is an example screen.

Click Add script property. Put the name Claude gave you in the property field, paste the API key into the value field, and save. Keeping the key out of the code helps you avoid sharing it by accident when you show someone the code or ask Claude for help.

Run the setup once to schedule a check every five minutes

In my script, I run setup once at the start. A function is a group of instructions with a name. Think of setup as a button you press once to get everything ready.

Go back to Editor in the left menu. Choose setup from the function list at the top and click Run. The first time, Google asks for permission. Read what the program wants access to and make sure it fits what you set the program up to do before you approve it.

The setup function creates a trigger, which tells the program when to run. It’s like an alarm that goes off every five minutes and tells the program to check for new mail.

Example Google Apps Script screen. Triggers in the left menu shows one time-driven trigger that runs the function for checking new mail every five minutes.
Open Triggers in the left menu and look for a single entry that runs every five minutes. This is an example screen.

Open Triggers in the left menu and check that the five-minute schedule is there. Gmail can now collect the emails, and the program knows when to check for them.

Send one test email and check that the translation arrives

Send one test email. First, check that it arrives in Gmail. Then check that the Japanese translation reaches the address you chose. The program checks every five minutes, so it can take a few minutes to arrive.

I give processed messages Gmail labels for successful and failed translations. Labels are like sticky notes on emails. They help the program avoid translating the same message twice. If translation fails three times, my setup forwards just the original.

Attachments arrive in English and Japanese

Once the email body is coming through in Japanese, you can extend the setup to attachments.

I’ve added a few things to the setup at home. One is being able to read attached documents and pictures in Japanese. The email contains both the English original and a Japanese copy with “_日本語” added to its filename.

1. A notice arrives as a PDF or a photo of a handout. 2. Claude lays out a Japanese PDF, or Japanese text is placed over the original image. 3. Both the English and Japanese versions are attached to the translated email.
I keep the original so I can check important details in English.

A PDF keeps the shape of each page so it reads like a paper document. In my setup, Claude lays out the Japanese version and turns it into a PDF.

For an image, such as a photo of a handout, the setup puts Japanese text over the original. I use Google Slides like a sheet where I can place the photo and lay Japanese text over it. Once you’re comfortable translating the email body, you can ask Claude to add Japanese copies of attachments.

Reply in Japanese, then reply “OK”

When I want to answer a teacher, I reply in Japanese to the translated email. I then get a confirmation email with the English wording.

1. Reply in Japanese to the translated email. 2. Get a confirmation email with the English reply. 3. Reply OK if the wording looks right. 4. Send the reply from the address registered with the school. The other parent also gets a notice.
I get to read the English reply before it goes out.

Once I’ve checked the English and replied “OK,” the reply goes to the teacher from the address registered with the school. Whichever of us didn’t reply gets an email saying the other person did. That keeps us from both answering the same message.

If the translation doesn’t arrive, trace it from the original email

Decide as a family whether it’s okay for Claude to read your school emails. Keep your API key private. When a translation mentions an important date, something to bring, or money, check the English original too.

If the test translation doesn’t arrive, first check that the original is in Gmail. My forwarding stopped once because my Google storage was full.

If the original is in Gmail, check Google Apps Script for errors. My script once stopped with a 403 error because it was missing a permission. You can paste the error message into Claude and ask what caused it and how to fix it.

If the script sends the translation but it doesn’t arrive, check the recipient’s spam folder. My translated emails sometimes ended up in iCloud Mail’s junk folder.

Google Apps Script can run for up to six minutes at a time. Making Japanese copies of attachments takes time, so my setup processes two emails per run. It runs on a free Google account, and I pay for Claude based on how much I use it.

Try it with one sender you hear from often

This works well if you regularly get messages in another language from a school, an after-school activity, or a business contact. If you keep copying each email into a translator, you can hand off that repeated step.

Start with one sender you hear from often and have the Japanese translation of the email body sent to you. Compare the original in Gmail with the translation you receive to see whether it reads the way you want.

When school notices arrive in Japanese, my wife and I can read them without having to copy the text into a translator. If I need to reply, I can write in Japanese and check the English before it goes to the teacher.

Comments

    Your name and comment appear here after review. No email needed. Links (URLs) are not allowed.