This directory contains the help content split by language for better maintainability and performance.
node/data/help-content/
├── metadata.json # Language metadata and section info
├── en.json # English content
├── es.json # Spanish content
├── fr.json # French content
├── de.json # German content
├── it.json # Italian content
├── pt.json # Portuguese content
├── ru.json # Russian content
├── zh.json # Chinese content
├── ja.json # Japanese content
├── ko.json # Korean content
├── ar.json # Arabic content (RTL)
├── he.json # Hebrew content (RTL)
├── tr.json # Turkish content
├── pl.json # Polish content
└── nl.json # Dutch content
- Total Languages: 15
- Total Sections: 10 per language
- Average File Size: ~13KB per language
- Total Lines: ~3,500 (vs 2,800 in monolithic file)
- Each translator can work on their own file
- Changes to one language don't affect others
- Easier to review and approve changes
- Only load the needed language(s)
- Smaller files load faster
- Better caching potential
- Easy to add new languages
- Easy to add new sections
- Better version control
- Easier testing of individual languages
- Better error isolation
- Simpler debugging
- Create the language file:
node/data/help-content/[lang].json - Update metadata: Add language info to
metadata.json - Translate content: Copy from English and translate all sections
- Test: Verify the language loads correctly
- Add to all language files: Add the new section to each
[lang].json - Update metadata: Add section info to
metadata.json - Test: Verify the section appears in all languages
GET /api/help?lang=[language]- Get help content for specific languageGET /api/help/languages- Get list of supported languagesGET /help?lang=[language]- Render help template for specific language
The system automatically applies Right-to-Left (RTL) text direction for:
- Arabic (العربية) -
ar.json - Hebrew (עברית) -
he.json
RTL support includes:
- Text direction: Right-to-Left
- Text alignment: Right-aligned
- Code blocks: Left-to-Right (for proper code display)
✅ Successfully migrated from monolithic 2,800-line file to 15 separate language files ✅ All 15 languages with all 10 sections working correctly ✅ Backend updated to use new file structure ✅ Performance improved with smaller, focused files
- overview - What is GGcode?
- syntax - Basic syntax and structure
- functions - Mathematical functions
- control - Control structures (loops, conditionals)
- arrays - Array support and usage
- operators - Comparison, logical, and mathematical operators
- constants - Built-in mathematical constants
- documentation - Commenting and documentation features
- features - Special GGcode features
- bestPractices - Programming best practices
