Skip to content

119 translations for modules#170

Merged
AlixANNERAUD merged 21 commits intomainfrom
119-translations-for-modules
Mar 22, 2026
Merged

119 translations for modules#170
AlixANNERAUD merged 21 commits intomainfrom
119-translations-for-modules

Conversation

@AlixANNERAUD
Copy link
Copy Markdown
Contributor

@AlixANNERAUD AlixANNERAUD commented Mar 22, 2026

This pull request introduces internationalization (i18n) support for the calculator and file_manager executables, enabling multi-language error and UI messages. It also refactors WASM file system state flag handling for improved clarity and consistency, and adds locale files for English and French. The most significant changes are grouped below:

Internationalization Support and Integration

  • Added the internationalization dependency to the calculator project and integrated the translate! macro throughout the codebase to wrap all user-facing strings and error messages. This enables dynamic language switching and translation of messages. (executables/calculator/Cargo.toml, executables/calculator/src/evaluator.rs, executables/calculator/src/interface.rs, executables/calculator/src/main.rs, executables/calculator/src/parser.rs) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]
  • Added locale files for English and French with translations for all calculator and file manager messages, errors, and UI elements. (executables/calculator/locales/en.json, executables/calculator/locales/fr.json, executables/file_manager/locales/en.json, executables/file_manager/locales/fr.json) [1] [2] [3] [4]
  • Set default and fallback locales to English in the project configuration. (.cargo/config.toml)

File System State Flag Refactoring for WASM

  • Refactored WASM file system code to consistently use XilaFileSystemState instead of XilaFileSystemStatus, updating function and variable names, bitmask constants, and conversions between WASI and Xila representations for file descriptor flags. This improves code clarity and aligns terminology. (executables/wasm/wamr/include/internal.h, executables/wasm/wamr/src/extension.c, executables/wasm/wamr/src/internal.c) [1] [2] [3] [4] [5] [6]

File Manager Internationalization

  • Integrated the translate! macro into the file manager for error logging, ensuring that error messages are localized. (executables/file_manager/src/file_manager.rs) [1] [2] [3]

Other Minor Improvements

  • Added use core::fmt::Debug; in modules/abi/context/src/lib.rs to support debugging.

These changes collectively improve the user experience for non-English speakers and enhance maintainability and clarity in the WASM file system code.

… and localization files in English and French
@AlixANNERAUD AlixANNERAUD linked an issue Mar 22, 2026 that may be closed by this pull request
@AlixANNERAUD AlixANNERAUD merged commit ef50752 into main Mar 22, 2026
1 of 2 checks passed
@AlixANNERAUD AlixANNERAUD deleted the 119-translations-for-modules branch March 22, 2026 18:02
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.

Translations for modules

1 participant