etude-github-actions
I didn't know anything about Github Action, so I made it as a practice.
An etude is a piece of music designed to help students master the skills of playing a musical instrument.
As a result of this, after some time has passed, you may find yourself asking, "Huh? Where's the translation function working?" and "Where is the translation function working?
It was called "pUnnamed" at the time.
Later called [pScrapboxAutoTrans2023-04-18
Where is the past code, where is it? ...I thought I couldn't find it, but it was in "Practice" w
Terrible W.
Need a place to discuss good and bad translations
Need to be available to non-engineering Japanese.
This is the story of [pPluralityBook
11/13~
Explanation of what we do
Create Deno and Python environment
JSON export from Scrapbox with Deno
Translate with [DeepL API
Diff with previous JSON
import sometimes fails (A), so I tried just the update diff instead of the whole JSON
The reason for this is that, especially in the early stages of development, there were changes in the translation without updating the original data due to changes in the system, so we did not filter by the date of update.
Commit latest JSON and translated JSON
Import translation difference JSON to Scrapbox
I tried to do a Python port because I couldn't figure out the cause of the problem, but eventually solved it by updating the diff.
---
This page is auto-translated from /nishio/etude-github-actions using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.