We all know how frustrating and time-consuming component localization can be. That's why I took it upon myself to find a solution. Although LocoMat may not be perfect and may have some bugs, it has successfully helped me simplify the localization process in my own projects.
I strongly believe that sharing is caring, and I want to extend the benefits of LocoMat to the developer community. I understand that many non-English developers face the same localization struggles, and LocoMat can be a valuable tool for them.
So, with all its imperfections, I present to you LocoMat—a tool designed to automate and simplify the localization of components. It may have some rough edges, but it has been tested and worked for me. I hope that by sharing it, we can collectively improve and refine LocoMat, making it an invaluable asset for developers worldwide. Let's work together to make component localization a breeze with LocoMat!
LocoMat
LocoMat is a powerful tool designed to simplify the localization of Blazor Razor components in applications built with Radzen Blazor Studio. It provides automation and scaffolding features to streamline the localization process.
Introduction
LocoMat helps you automate the localization of Blazor Razor components by generating resource files from .razor
files and updating the corresponding localized resources file. It focuses specifically on providing localization support for Radzen Blazor components.
The tool supports various Radzen Blazor components such as RadzenTemplateForm, RadzenDropDownDataGridColumn, RadzenDataGridColumn, RadzenLabel, RadzenRequiredValidator, RadzenButton, and RadzenPanelMenuItem.
Features
- Generate resource files from
.razor
files in your Blazor application - Translate resource files to different languages using the Translator API
- Easy-to-use command-line interface with shortcuts for faster input
- Scaffold localization for Radzen.Blazor components
Installation
Install LocoMat as a global dotnet tool:
dotnet tool install --global LocoMat
To uninstall LocoMat, use the following command:
dotnet tool uninstall --global LocoMat
For updating LocoMat, run:
dotnet tool update --global LocoMat
Usage
Run LocoMat using the following command:
LocoMat <command> [options]
Commands
-
localize
: Localizes the project. -
scaffold
: Scaffolds localization of Radzen.Blazor components. -
translate
: Translates resource files. -
restore
: Restores the original files from backup.
For detailed command options and examples, refer to the LocoMat GitHub repository.
GitHub Repository
Visit the LocoMat GitHub repository for more information, documentation, and to contribute to the project.