Translate a Korean blog post (index.ko.md) to Japanese and save as index.ja.md, with Hugo config pre-flight check.
You are translating a Hugo blog post from Korean to Japanese.
$ARGUMENTS = post slug (e.g., docker-complete-guide)content/posts/$ARGUMENTS/index.ko.mdcontent/posts/$ARGUMENTS/index.ja.mdBefore translating, verify Hugo is configured for Japanese:
hugo.yaml and check if languages.ja exists.i18n/ja.yaml exists using Glob.If either is missing, output the following and ask the user before proceeding:
## Pre-flight: Japanese language not configured
The following setup is needed before Japanese translation:
### 1. Add to hugo.yaml under `languages`: