PZ-next is a Visual Studio Code extension designed to streamline development workflows in web applications, focusing on localization and icon management. This extension provides features like localization key auto-completions, SVG icon processing, and font generation from SVG files.
Features
Localization Key Completions
Auto-suggests localization keys from JSON files.
Supports both monorepo and standard repository structures.
Newly added functionality to specify custom locale directory paths.
SVG Icon Management
Processes SVG files by removing unnecessary elements and slugifying file names.
Ensures consistency in icon file naming and formatting.
Font Generation
Generates icon fonts from SVG files in various formats (e.g., EOT, WOFF2, WOFF, TTF, SVG).
Creates corresponding CSS and SCSS files for the generated fonts.
Custom Locale Path Configuration
Introduction
Users can now specify a custom path for the locale directory via a configuration file.
Configuration File
Create pzconfig.json File:
Place this file in the root of your workspace.
Use JSON format for configuration.
Specify Locale Path:
Add a key localePath with the path to your locale directory relative to the workspace root.
Example:
{
"localePath": "path/to/your/locales"
}
Example Configuration
{
"localePath": "apps/myapp/public/locales"
}
### Fallback Behavior
- If pzconfig.json does not exist or localePath is not specified, the extension defaults to the existing logic for determining the locale directory.
### Contact
bilal.keskin@akinon.com