Skip to content

Comments

Add automated translations#100

Closed
abichinger wants to merge 4 commits inton1crack:masterfrom
abichinger:master
Closed

Add automated translations#100
abichinger wants to merge 4 commits inton1crack:masterfrom
abichinger:master

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

@n1crack
Copy link
Owner

n1crack commented Dec 26, 2025

Thanks a lot for the effort and the detailed work — much appreciated 🙏

This PR was based on an older version of the codebase. Since then, VueFinder has gone through significant architectural changes, so unfortunately we can’t merge this in its current form.

Additionally, I’m not fully sure that automated / AI-based translations should be part of the core repository. At the moment, I prefer keeping a small set of well-maintained default languages in the main package.

Due to workload, I also didn’t have the chance to properly test this implementation, and given the amount of changes since then, maintaining this inside the core would be risky.

For now, I’m going to close this PR, but thank you again for the contribution and the initiative. Feel free to reach out or open a discussion if you want to explore the external-locales idea further.

@n1crack n1crack closed this Dec 26, 2025
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.

2 participants