-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat, perf, ci, style: Enhancements to Localization, Server Configuration, and Code Clarity #572
base: main
Are you sure you want to change the base?
Commits on Sep 21, 2024
-
new features has been added for fuel-core & optimization
Added Multi-Language Support: Implemented a mechanism to detect the system language using environment variables (LANG, LC_ALL) on Linux and Unix-based systems. On Windows, the chcp command is used. Supported languages include English, Turkish, Spanish, French, German, Chinese, and Japanese. Translation JSON File: Created a translations.json file containing translations for all supported languages. The JSON file includes keys for various messages used in the script. Translation Function: Added a translate function to fetch the appropriate translation from the JSON file based on the detected system language. The function uses jq to parse the JSON and retrieve the correct message. Integrated Translations in Script: Replaced hardcoded messages with calls to the translate function. Ensured that all user-facing messages are translated according to the system language. Example of Translated Messages: Messages such as "Connected to L1 chain", "Waiting for L1 chain deployment data", and "Starting Fuel node" are now dynamically translated. Improved User Experience: Users will now see messages in their system's language, enhancing usability and accessibility.
Configuration menu - View commit details
-
Copy full SHA for fb52d3b - Browse repository at this point
Copy the full SHA fb52d3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01f33f5 - Browse repository at this point
Copy the full SHA 01f33f5View commit details -
Added multi-language support to block-commiter.sh
- Integrated system language detection to determine the appropriate language for messages. - Loaded translations from a JSON file based on the detected system language. - Replaced echo statements with a translate function to fetch and display messages in the appropriate language. - Added translations for English, Turkish, Chinese, Japanese, Spanish, German, and French.
Configuration menu - View commit details
-
Copy full SHA for 761499d - Browse repository at this point
Copy the full SHA 761499dView commit details -
Add HOST variable support in app.ts and environment files for flexibl…
…e server configuration - Introduced dynamic HOST variable in app.ts to allow flexible server host configuration. - Updated the server startup message to use the HOST environment variable. - Ensured the server starts on the specified host from the environment variable, defaulting to 'localhost' if not set. - Added HOST entries in the environment (.env) files.
Configuration menu - View commit details
-
Copy full SHA for af83ec4 - Browse repository at this point
Copy the full SHA af83ec4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2879d79 - Browse repository at this point
Copy the full SHA 2879d79View commit details -
Refactor transaction mapping to use const in BlockEntity (for optimiz…
…ation) Updated the BlockEntity class to use const for transaction mapping, ensuring values are not reassigned elsewhere in the code. This improves code reliability and maintainability by preventing unintended mutations.
Configuration menu - View commit details
-
Copy full SHA for 1490936 - Browse repository at this point
Copy the full SHA 1490936View commit details -
Improve readability of ChainEntity creation
Refactored the ChainEntity creation method to streamline the assignment of chainID and chainData. This improves readability by using clear variable names and structured data flow, enhancing code maintainability.
Configuration menu - View commit details
-
Copy full SHA for 5f3b961 - Browse repository at this point
Copy the full SHA 5f3b961View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2b8f81 - Browse repository at this point
Copy the full SHA a2b8f81View commit details
Commits on Sep 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7e3c578 - Browse repository at this point
Copy the full SHA 7e3c578View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2207ef3 - Browse repository at this point
Copy the full SHA 2207ef3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b72a29 - Browse repository at this point
Copy the full SHA 0b72a29View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8e4751d - Browse repository at this point
Copy the full SHA 8e4751dView commit details
Commits on Sep 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8defa62 - Browse repository at this point
Copy the full SHA 8defa62View commit details
Commits on Oct 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 34b40ad - Browse repository at this point
Copy the full SHA 34b40adView commit details