Used tools, libraries and languages:
Hosted by Netlify
PatsiukUI is an interactive translation tool designed to assist translators and localization communities in their work. This tool provides advanced customization options and translation memory features to streamline the translation process.
- Interactive Interface: PatsiukUI offers an intuitive interface for translators to work efficiently.
- Customization: Advanced customization options allow users to personalize the tool according to their preferences.
- Translation Memory: The tool includes a translation memory feature to help maintain consistency and improve productivity.
- Snapshot and Copy: Users can easily capture screenshots of their work and copy text for further use.
- Background Setting: Customize the background by providing a link to an image or selecting a background color.
- Card Customization: Adjust the size, border radius, and gap between translation cards.
- Translation Input: Add new translation items by providing the title, image link, and translation progress.
- Snapshot and Copy: Capture screenshots or copy text with the click of a button.
To get started with PatsiukUI, follow these steps:
- Clone or download the repository from GitHub.
- Open the
index.html
like a localserver. - Customize the settings and start translating!
Contributions to PatsiukUI are welcome! If you have any ideas for improvements or new features, feel free to submit a pull request or open an issue on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or support, you can reach out to the creator:
- Creator: MEGATREX4
- Website: MEGATREX4's Portfolio
- GitHub: MEGATREX4 on GitHub
- Telegram: Patsiuk Localizator
This document provides detailed information on the functionality and usage of the burger menu settings code implemented using JavaScript.
The provided JavaScript code implements functionality for managing burger menu settings, including the customization of various UI elements such as border radius, image gap, card background, text color, background image, and background color. It allows users to reset settings, apply changes in real-time, save settings to local storage, and load settings from local storage.
idCounter
: Variable for generating unique IDs.burgerMenuState
: Object to store current burger menu settings.standardSettings
: Default settings for the burger menu.- Functions:
resetBurgerMenuStyles()
: Resets burger menu styles to default values.applyBurgerMenuStyles()
: Applies current burger menu styles to UI elements.updateBurgerMenuState()
: Updates burger menu state with current form values.showBurgerMenu()
,hideBurgerMenu()
: Functions to show/hide the burger menu.updateCardSize(scaleValue)
: Updates card size based on scale value.storeItemInLocalStorage(item)
: Stores item details in local storage.loadItemsFromLocalStorage()
: Loads items from local storage and displays them.removeItemFromLocalStorage(itemId)
: Removes item from local storage by ID.addStoredItemToUI(item)
: Adds stored item to the UI.updateMemoryValues(itemId, field, value)
: Updates values in local storage and UI dynamically.captureScreenshotWithDomToImage()
: Captures screenshot of UI using dom-to-image library.makeImage(uri)
: Creates an image with specified URI.
-
Setting Customization:
- Adjust settings using input fields and sliders.
- Apply changes in real-time by interacting with UI elements.
-
Resetting Settings:
- Click on the "Reset" button to reset settings to default values.
-
Saving and Loading Settings:
- Changes are automatically saved to local storage.
- Settings are loaded from local storage on page load.
-
Managing Items:
- Add items with title, image, translated, and approved values.
- Remove items by clicking on the remove button.
-
Additional Features:
- Copy the percentage text to clipboard.
- Capture a screenshot of the UI.
- Use color picker to select background color.
The burger menu settings code provides a flexible and user-friendly interface for customizing UI elements and managing items. Users can easily adjust settings, save preferences, and interact with the UI in real-time.