SAPUI5 Initial Config
Description
This extension provides commands to facilitate the initial configuration of SAPUI5 projects in Visual Studio Code. It offers the following commands: "SAPUI5 Initial Config", "SAPUI5 Create View", "SAPUI5 Translate i18n", and "SAPUI5 Find Missing i18n Declarations".
Requirements
Make sure you have Visual Studio Code installed on your computer.
Installation
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the square icon in the sidebar or pressing
Ctrl+Shift+X
.
- Search for "SAPUI5 Initial Config" in the Extensions marketplace.
- Click the "Install" button for the "SAPUI5 Initial Config" extension by João Mota.
- Wait for the installation to complete.
Usage
SAPUI5 Initial Config
This command adds the default configuration files to the SAPUI5 project.
- Press
Ctrl + Shift + P
to open the command palette.
- Type "SAPUI5 Initial Config" and select the corresponding option from the command palette results.
- Follow the prompts and wait for the extension to complete the initial configuration.
SAPUI5 Create View
This command creates a new view in the SAPUI5 project.
- Press
Ctrl + Shift + P
to open the command palette.
- Type "SAPUI5 Create View" and select the corresponding option from the command palette results.
- Enter the desired name for the new view when prompted.
- Wait for the extension to create the new view files and configure the application accordingly.
SAPUI5 Translate i18n
This command allows you to automatically translate the text in an i18n (internationalization) properties file using an online translation service.
- Make sure you have the i18n properties files in your project. By convention, they are usually named
i18n_<language>.properties
and located in the i18n
directory.
- Open the i18n properties file that you want to translate.
- Press
Ctrl + Shift + P
to open the command palette.
- Type "SAPUI5 Translate i18n" and select the corresponding option from the command palette results.
- Follow the prompts to enter the target language for translation and the i18n file to translate from.
- The extension will automatically translate the text in the i18n file using an online translation service.
- The translated content will be saved to a new i18n file with the target language (e.g.,
i18n_<targetLanguage>.properties
).
- Review and make any necessary adjustments to the translated content.
SAPUI5 Find Missing i18n Declarations
This command helps you identify words or keys used in your SAPUI5 application that are not declared in the i18n (internationalization) properties file.
- Make sure you have the i18n properties file in your project. By convention, it's usually named
i18n.properties
and located in the i18n
directory.
- Press
Ctrl + Shift + P
to open the command palette.
- Type "SAPUI5 Find Missing i18n Declarations" and select the corresponding option from the command palette results.
- The extension will analyze your project files and compare the words used in the application with the keys declared in the i18n properties file.
- A list of words that are used but not declared in the i18n file will be added to the
i18n.properties
file.
Contribution
Contributions to this project are welcome! If you have any suggestions, issues, or corrections, feel free to open an issue or submit a pull request on the GitHub repository.
Developer
This project was developed by João Mota.
License
This project is licensed under the MIT License. You can find more information in the LICENSE file.