GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — morpheus/scripts at dev · dupipcom/morpheus

Expand file tree

/

scripts

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

scripts

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README-migration.md
README-migration.md
 
 
README.md
README.md
 
 
add-default-names-to-tasklists-and-templates.js
add-default-names-to-tasklists-and-templates.js
 
 
add-default-templates.js
add-default-templates.js
 
 
add-modal-strings-update.js
add-modal-strings-update.js
 
 
add-weekly-translations.js
add-weekly-translations.js
 
 
check-templates.js
check-templates.js
 
 
cleanup-orphaned-template-ids.js
cleanup-orphaned-template-ids.js
 
 
complete-translations.js
complete-translations.js
 
 
complete_translations.js
complete_translations.js
 
 
create-default-templates.js
create-default-templates.js
 
 
debug-user-settings.js
debug-user-settings.js
 
 
flatten-actions-locale.js
flatten-actions-locale.js
 
 
generate-locales.js
generate-locales.js
 
 
migrate-settings-to-template-refs.js
migrate-settings-to-template-refs.js
 
 
migrate-templates-dry-run.js
migrate-templates-dry-run.js
 
 
migrate-templates.js
migrate-templates.js
 
 
migrate-user-templates-to-tasklists.js
migrate-user-templates-to-tasklists.js
 
 
populate-user-template-references.js
populate-user-template-references.js
 
 
rollback-templates.js
rollback-templates.js
 
 
sync-locales-from-en.js
sync-locales-from-en.js
 
 
translate-new-keys.js
translate-new-keys.js
 
 
translation-status.js
translation-status.js
 
 
update-translation-keys.js
update-translation-keys.js
 
 
update_locales.sh
update_locales.sh
 
 
verify-migration.js
verify-migration.js
 
 
verify-xss-protection.js
verify-xss-protection.js
 
 

README.md

Outline

Translation Maintenance Scripts

This directory contains scripts for maintaining and checking translations across all language files.

Scripts

translation-status.js

A comprehensive status checker that:

  • Verifies all language files have the same keys as the English reference file
  • Identifies English text that may need translation
  • Provides a summary report of translation completeness

Usage:

node scripts/translation-status.js

Output:

  • Lists each language with missing keys (if any)
  • Shows English text found in translations
  • Provides summary statistics
  • Gives recommendations for improvement

Translation Status Summary

As of the last check:

  • ✅ 29/29 languages (100%) have all required keys
  • ⚠️ 1,843 English texts found across all languages (reduced from 2,112)
  • 📊 Average of 64 English texts per language (reduced from 73)
  • 🎯 2 languages (AR, JA, ZH) have no English text remaining

Languages Supported

The application supports 29 languages:

  • Arabic (ar)
  • Bengali (bn)
  • Catalan (ca)
  • Czech (cs)
  • Danish (da)
  • German (de)
  • Greek (el)
  • Estonian (et)
  • Basque (eu)
  • Finnish (fi)
  • French (fr)
  • Galician (gl)
  • Hebrew (he)
  • Hindi (hi)
  • Hungarian (hu)
  • Italian (it)
  • Japanese (ja)
  • Korean (ko)
  • Malay (ms)
  • Dutch (nl)
  • Punjabi (pa)
  • Polish (pl)
  • Portuguese (pt)
  • Romanian (ro)
  • Russian (ru)
  • Swedish (sv)
  • Turkish (tr)
  • Chinese (zh)

Best Practices

When Adding New Keys

  1. Always add new keys to src/locales/en.json first
  2. Run translation-status.js to identify missing keys in other languages
  3. Add appropriate translations for all languages
  4. Consider using a translation service for consistency

When Reviewing English Text

English text in translations may be intentional for:

  • Technical terms that should remain in English (e.g., "Dashboard", "API")
  • Brand names or proper nouns
  • Placeholder text that needs translation
  • UI elements that are commonly left in English
  • Weekly action descriptions that are more complex to translate
  • Financial terms that may be standardized across languages

Translation Guidelines

  1. Consistency: Use consistent terminology across the application
  2. Context: Consider the context when translating (e.g., "Settings" vs "Configuration")
  3. Cultural Sensitivity: Be aware of cultural differences in expressions
  4. Length: Consider UI space constraints when translating
  5. Variables: Preserve interpolation variables like {date}, {count}, etc.

Maintenance Workflow

  1. Regular Checks: Run translation-status.js weekly to catch missing keys
  2. New Features: Always check translations when adding new features
  3. Quality Review: Periodically review English text to identify translation opportunities
  4. User Feedback: Consider user feedback about translation quality

Files Structure

src/locales/
├── en.json          # Reference file (English)
├── ar.json          # Arabic
├── bn.json          # Bengali
├── ca.json          # Catalan
├── cs.json          # Czech
├── da.json          # Danish
├── de.json          # German
├── el.json          # Greek
├── et.json          # Estonian
├── eu.json          # Basque
├── fi.json          # Finnish
├── fr.json          # French
├── gl.json          # Galician
├── he.json          # Hebrew
├── hi.json          # Hindi
├── hu.json          # Hungarian
├── it.json          # Italian
├── ja.json          # Japanese
├── ko.json          # Korean
├── ms.json          # Malay
├── nl.json          # Dutch
├── pa.json          # Punjabi
├── pl.json          # Polish
├── pt.json          # Portuguese
├── ro.json          # Romanian
├── ru.json          # Russian
├── sv.json          # Swedish
├── tr.json          # Turkish
└── zh.json          # Chinese

Troubleshooting

Common Issues

  1. Missing Keys: If a language is missing keys, they will be automatically added with English placeholders
  2. JSON Syntax Errors: Check for trailing commas or missing brackets
  3. Encoding Issues: Ensure files are saved in UTF-8 encoding

Getting Help

  • Check the console output for specific error messages
  • Verify JSON syntax with a JSON validator
  • Compare with the English reference file for structure
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.