-
-
Notifications
You must be signed in to change notification settings - Fork 432
Update Italian translations in it-IT.json #2667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,7 +77,7 @@ | |
| "tap_to_search": "Tocca per cercare" | ||
| }, | ||
| "blog": { | ||
| "author": {}, | ||
| "author": "autore", | ||
| "atproto": {} | ||
| }, | ||
| "settings": { | ||
|
|
@@ -155,7 +155,7 @@ | |
| } | ||
| }, | ||
| "profile": { | ||
| "invite": {} | ||
| "invite": "invita" | ||
| }, | ||
| "package": { | ||
|
Comment on lines
157
to
160
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
itfile="$(fd -a -t f 'it-IT\.json$' . | head -n 1)"
enfile="$(fd -a -t f 'en-US\.json$' . | head -n 1 || true)"
[[ -n "$enfile" ]] || enfile="$(fd -a -t f 'en\.json$' . | head -n 1 || true)"
jq -r '{
profile_invite_type: (.profile.invite | type),
profile_invite_compose_text_present: (if (.profile.invite|type)=="object" then has("compose_text") else false end)
}' "$itfile"
if [[ -n "${enfile}" ]]; then
jq -r '{
profile_invite_type: (.profile.invite | type),
profile_invite_compose_text_present: (if (.profile.invite|type)=="object" then has("compose_text") else false end)
}' "$enfile"
fi
rg -n "\$t\(\s*['\"]profile\.invite(\.[^'\"]+)?['\"]" app --glob '!**/node_modules/**' || trueRepository: npmx-dev/npmx.dev Length of output: 231 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Search for any reference to 'profile.invite' in any form
echo "=== Searching for all profile.invite references ==="
rg "profile\.invite" app --type ts --type tsx --type js --type json -C 2 || true
echo ""
echo "=== Searching for dynamic key construction with profile ==="
rg "profile\." app --type ts --type tsx --type js -C 1 | head -50 || true
echo ""
echo "=== Checking all uses of $t function with profile ==="
rg '\$t\(' app --type ts --type tsx -A 1 | grep -i profile | head -20 || trueRepository: npmx-dev/npmx.dev Length of output: 289 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "=== Directory structure of app ==="
ls -la app/ | head -20 || echo "app directory not found"
echo ""
echo "=== Searching for 'compose_text' anywhere ==="
rg "compose_text" . --glob '!node_modules' || true
echo ""
echo "=== Searching for profile references in translation calls ==="
rg "profile" app/ -i || true
echo ""
echo "=== Checking i18n file structure ==="
echo "Italian locale profile section:"
fd -t f 'it-IT\.json' . | head -1 | xargs jq '.profile' 2>/dev/null || true
echo ""
echo "English locale profile section:"
fd -t f 'en.*\.json' . | head -1 | xargs jq '.profile' 2>/dev/null || trueRepository: npmx-dev/npmx.dev Length of output: 19583 Fix i18n structure for The Italian locale (it-IT.json) defines Other locales (English, German, French, etc.) correctly structure 🤖 Prompt for AI Agents |
||
| "not_found": "Pacchetto Non Trovato", | ||
|
|
@@ -798,7 +798,7 @@ | |
| "managers": "gestori di pacchetti" | ||
| } | ||
| }, | ||
| "sponsors": {}, | ||
| "sponsors": "sponsors", | ||
| "oss_partners": {}, | ||
| "team": {}, | ||
| "contributors": { | ||
|
|
@@ -1081,11 +1081,11 @@ | |
| "a11y": { | ||
| "approach": {}, | ||
| "measures": {}, | ||
| "limitations": {}, | ||
| "contact": {} | ||
| "limitations": "limitazioni", | ||
| "contact": "contatti" | ||
| }, | ||
|
Comment on lines
1081
to
1086
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
itfile="$(fd -a -t f 'it-IT\.json$' . | head -n 1)"
enfile="$(fd -a -t f 'en-US\.json$' . | head -n 1 || true)"
[[ -n "$enfile" ]] || enfile="$(fd -a -t f 'en\.json$' . | head -n 1 || true)"
jq -r '{
a11y_limitations_type: (.a11y.limitations | type),
a11y_limitations_title_present: (if (.a11y.limitations|type)=="object" then has("title") else false end),
a11y_contact_type: (.a11y.contact | type)
}' "$itfile"
if [[ -n "${enfile}" ]]; then
jq -r '{
a11y_limitations_type: (.a11y.limitations | type),
a11y_limitations_title_present: (if (.a11y.limitations|type)=="object" then has("title") else false end),
a11y_contact_type: (.a11y.contact | type)
}' "$enfile"
fi
rg -n "\$t\(\s*['\"]a11y\.limitations(\.[^'\"]+)?['\"]" app --glob '!**/node_modules/**' || true
rg -n "\$t\(\s*['\"]a11y\.contact(\.[^'\"]+)?['\"]" app --glob '!**/node_modules/**' || trueRepository: npmx-dev/npmx.dev Length of output: 289 🏁 Script executed: # Search more broadly for a11y key usage in the codebase
# Check different formats and search the entire repo
rg "a11y\.limitations|a11y\.contact" . --glob '!**/node_modules/**' -A 2 -B 2 | head -100Repository: npmx-dev/npmx.dev Length of output: 1654 🏁 Script executed: # Also check the English locale file structure more thoroughly
fd -t f 'en' . --glob '*/locales/*' | head -5Repository: npmx-dev/npmx.dev Length of output: 119 🏁 Script executed: # Look at the actual locale files to understand structure
fd -t f '\.json$' . --path '*/locales/*' | head -10Repository: npmx-dev/npmx.dev Length of output: 295 🏁 Script executed: # Find and read the locale files
fd -t f '\.(json|js)$' i18n/locales/ 2>/dev/null || fd -t f '\.(json|js)$' locales/ 2>/dev/null || find . -name '*-US.json' -o -name '*-US.js' 2>/dev/null | head -1 | xargs head -200Repository: npmx-dev/npmx.dev Length of output: 988 🏁 Script executed: # Get the it-IT file and show the a11y structure
fd 'it-IT\.json' . -x head -n 1200 {} | tail -n 150Repository: npmx-dev/npmx.dev Length of output: 7645 🏁 Script executed: # Also check en.json or en-US.json for reference structure
find . -name 'en*.json' -path '*/locale*' | head -1 | xargs cat | jq '.a11y' 2>/dev/null || trueRepository: npmx-dev/npmx.dev Length of output: 66 🏁 Script executed: jq '.a11y' i18n/locales/en-US.jsonRepository: npmx-dev/npmx.dev Length of output: 66 🏁 Script executed: # Check if a11y exists anywhere in en locales
rg "a11y" i18n/locales/en*.jsonRepository: npmx-dev/npmx.dev Length of output: 143 🏁 Script executed: # Check what all locales have for a11y structure
for f in i18n/locales/*.json; do
echo "=== $(basename $f) ==="
jq -c '.a11y // "missing"' "$f"
done | head -40Repository: npmx-dev/npmx.dev Length of output: 19878 Complete the Currently, 🤖 Prompt for AI Agents |
||
| "translation_status": { | ||
| "table": {} | ||
| "table": "tabella" | ||
| }, | ||
| "action_bar": {} | ||
|
Comment on lines
1087
to
1090
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
itfile="$(fd -a -t f 'it-IT\.json$' . | head -n 1)"
enfile="$(fd -a -t f 'en-US\.json$' . | head -n 1 || true)"
[[ -n "$enfile" ]] || enfile="$(fd -a -t f 'en\.json$' . | head -n 1 || true)"
jq -r '{
translation_status_table_type: (.translation_status.table | type),
translation_status_table_file_present: (if (.translation_status.table|type)=="object" then has("file") else false end)
}' "$itfile"
if [[ -n "${enfile}" ]]; then
jq -r '{
translation_status_table_type: (.translation_status.table | type),
translation_status_table_file_present: (if (.translation_status.table|type)=="object" then has("file") else false end)
}' "$enfile"
fi
rg -n "\$t\(\s*['\"]translation_status\.table(\.[^'\"]+)?['\"]" app --glob '!**/node_modules/**' || trueRepository: npmx-dev/npmx.dev Length of output: 255 🏁 Script executed: #!/bin/bash
# Broader search for code usages of translation_status.table with any suffix
# Search across all file types and directories
rg "translation_status\.table\." --type-add 'template:*.{vue,html,jsx,tsx,svelte}' -t template -t js -t ts -t tsx -t jsx . 2>/dev/null || echo "No matches found"
# Also search without the dot to find any reference to translation_status.table
rg "translation_status['\"]?\s*[:\.]?\s*['\"]?table" --type js --type ts --type tsx --type jsx -A 2 -B 2 . 2>/dev/null | head -50 || echo "No JavaScript/TypeScript matches"
# Check the structure of the i18n files more carefully
fd 'en.*\.json$|it-IT\.json$' . -type f | while read f; do
echo "=== $f ==="
jq '.translation_status // "not found"' "$f" 2>/dev/null
doneRepository: npmx-dev/npmx.dev Length of output: 267 🏁 Script executed: #!/bin/bash
# Check i18n file structures directly
echo "=== Checking i18n file structures ==="
fd 'it-IT\.json$|en.*\.json$' . -type f | while read f; do
echo "File: $f"
jq '.translation_status // "not found"' "$f" 2>/dev/null | head -20
echo ""
done
# Simpler search for any code referencing translation_status.table
echo "=== Search for translation_status.table in code ==="
rg "translation_status" --glob '*.{js,ts,tsx,jsx,vue}' -A 3 -B 1 . 2>/dev/null | head -100
# Search for the $t function calls with translation_status
echo "=== Search for \$t calls with translation_status ==="
rg '\$t\s*\(\s*["\047]translation_status' . --glob '*.{js,ts,tsx,jsx,vue}' 2>/dev/nullRepository: npmx-dev/npmx.dev Length of output: 7534 🏁 Script executed: #!/bin/bash
# Check the full structure of translation_status in the i18n files
echo "=== en-US.json structure ==="
fd 'en.*\.json$' . -type f | head -1 | xargs jq '.translation_status' | head -50
echo ""
echo "=== it-IT.json structure ==="
fd 'it-IT\.json$' . -type f | xargs jq '.translation_status' | head -50Repository: npmx-dev/npmx.dev Length of output: 480 🏁 Script executed: #!/bin/bash
# Find and examine the locale files directly
echo "=== Finding locale files ==="
find . -name "*-IT.json" -o -name "en-US.json" -o -name "en.json" 2>/dev/null | head -10
echo ""
echo "=== Checking it-IT.json ==="
find . -name "it-IT.json" 2>/dev/null | head -1 | xargs cat | jq '.translation_status' 2>/dev/null | head -80
echo ""
echo "=== Checking en-US.json or en.json ==="
find . -name "en-US.json" -o -name "en.json" 2>/dev/null | head -1 | xargs cat | jq '.translation_status' 2>/dev/null | head -80Repository: npmx-dev/npmx.dev Length of output: 264 🏁 Script executed: #!/bin/bash
# Check en.json specifically since en-US.json returned null
echo "=== Checking en.json ==="
cat ./i18n/locales/en.json | jq '.translation_status' 2>/dev/null | head -100
echo ""
echo "=== Full view of all three files' translation_status ==="
for file in ./i18n/locales/en-US.json ./i18n/locales/en.json ./i18n/locales/it-IT.json; do
echo "File: $file"
jq '.translation_status' "$file" 2>/dev/null
echo ""
doneRepository: npmx-dev/npmx.dev Length of output: 2816 Fix i18n structure for The Italian translation sets 🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: npmx-dev/npmx.dev
Length of output: 319
🏁 Script executed:
Repository: npmx-dev/npmx.dev
Length of output: 1377
🏁 Script executed:
Repository: npmx-dev/npmx.dev
Length of output: 2651
Fix structural mismatch in
blog.author— currently a string, but code expects an object with nestedview_profileproperty.In it-IT.json,
blog.authoris set to the string"autore", but the code (AuthorList.vue:22) calls$t('blog.author.view_profile', { name: ... }), which requiresblog.authorto be an object. All other locales (en.json, de.json, fr-FR.json, etc.) correctly structure it as an object with aview_profilekey; it-IT.json is the only locale with this string value, causing the translation lookup to fail and fall back to English.Change it-IT.json from:
To an object structure:
🤖 Prompt for AI Agents