Skip to content

Turkish (tr_TR) translation generation fails while other languages work #140

Description

@yeggis

Summary

Turkish (tr_TR) translation generation fails while other languages work

Steps to reproduce

  1. Run translation generation for Turkish (tr_TR) via the UI or "./scripts/ai/gemini-translate.sh tr_TR".
    1. Observe the "Translation complete" notification.
    1. Check the output file in "translations/tr_TR.json".

Expected behavior

The translation should be generated successfully.

Root Cause:
"gemini-translate.sh" passes the full content of "en_US.json" (~228 KB, 3655 keys) as a shell argument to both "jq" and "curl". This exceeds the shell's "ARG_MAX" limit.

Other bundled languages (de_DE, etc.) appear to work because their ".json" files already exist in the "translations/" directory - they were never actually generated through this script on the user's machine.

Logs

Check gemini-translate.sh for ARG_MAX limit.

Version

Latest

Compositor

niri

Quickshell version

0.2.1

Qt version

6.6.1

Distro

CachyOS (Arch Linux)

Panel family

ii

Relevant configuration

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions