Skip to content
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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Commits on Sep 21, 2024

  1. 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.
    MaverickTR committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    fb52d3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01f33f5 View commit details
    Browse the repository at this point in the history
  3. 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.
    MaverickTR committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    761499d View commit details
    Browse the repository at this point in the history
  4. 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.
    MaverickTR committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    af83ec4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2879d79 View commit details
    Browse the repository at this point in the history
  6. 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.
    MaverickTR committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    1490936 View commit details
    Browse the repository at this point in the history
  7. 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.
    MaverickTR committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    5f3b961 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a2b8f81 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Configuration menu
    Copy the full SHA
    7e3c578 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Configuration menu
    Copy the full SHA
    2207ef3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b72a29 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    8e4751d View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    8defa62 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    34b40ad View commit details
    Browse the repository at this point in the history