Skip to content

Conversation

@abichinger
Copy link
Contributor

I moved the translations into JSON files in order to automate the translation process.

How to translate?

attranslate is used to generate the translations

Setup environment variables

TYPECHAT_SCHEMA_COMMENT=Translations for a File Explorer written in Vue
TYPECHAT_RPM=1
OPENAI_API_KEY=GEMINI_API_KEY
OPENAI_ENDPOINT=https://generativelanguage.googleapis.com/v1beta/openai/v1/chat/completions?
OPENAI_MODEL=gemini-2.5-flash
OPEN_AI_BATCH_SIZE=30

Run automated translation

node scripts/translate.js

Note: I used a modified version of attranslate. The public version (v2.2.0) of attranslate fails during the translation process. (see fkirc/attranslate#280)

3a34548 makes it possible to override the locale stored in LocalStorage by adding a ! to the locale (e.g. !de). This allows you to adjust the language settings outside of vuefinder.

Breaking Changes

  • rename zhCN to zh_CN, rename zhTW to zh_TW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant