Skip to Content
Technical Articles

SAP Web IDE Plugin: UI5 Internationalization/i18n Helper (Open Source)

Do you have big i18n property files?
Do you want to check if there is a missing translation with a click of a button?
…without leaving the convenient Web IDE?

Then, this plugin is for you!

 

Features

It detects the current project(the project of the currently open file or selected file).

It searches XML views for i18n usage. So, it doesn’t just compare properties with each other, giving you peace of mind.

You can use it from tools menu:

A-ha! “Bonjour!” is missing in the French translation:

We fix it:

Everything is OK now:

The plugin assumes there is only one property file for each language. If you have different project structures please give feedback.

Any feedback regarding features and UI is welcome!

Installation

Create a destination:

If URL changes in the future I will update it here. You can also save this configuration as a text file and you can use “Import Destination” feature.

Also GitHub repo contains more mirrors and a handy .zip file, if you need to host the plugin yourself!

Name=i18n-helper
URL=https\://i18nhelper-p732728trial.dispatcher.hanatrial.ondemand.com
ProxyType=Internet
Type=HTTP
WebIDEEnabled=true
Authentication=NoAuthentication
WebIDEUsage=feature

Settings > Plugins > Repository “Features” > Enable the plugin > Save

Then there will be a new menu item Tools > I18n Helper > Compare Properties

Source Code

2 years ago, I have developed a similar tool for command line here.

However, I have observed that most of the UI5 development happens only in Web IDE. It has proven itself to be the go-to tool for UI5 developers. Also, the plugin development seems fun. I think the community can benefit a lot from community-developed plugins.

Plugin specific code is in plugin directory in this GitHub repo:

https://github.com/fatihpense/webide-i18n-plugin

Thanks

Web IDE team for the SDK Web Site and help. (sapwebide@sap.com)

Daniel Wroblewski and Jim Jaquet for the tutorials.(Update 2019-08-05: As Daniel mentions below the original tutorials are not available and you can visit the new tutorials here: Create an Extension for SAP Web IDE )

Wouter Lemaire for informative blog posts.

And thanks for reading!
Fatih

14 Comments
You must be Logged on to comment or reply to a post.
    • Thank you for the detailed issue feedback and kind words, Gregor!

      It is really motivating to see the usage and benefit of the plugin!

      Best regards,
      Fatih

    • Hi Sharath,

      Thank you for the kind words!

      Also, If you need help regarding plugin development, you can message me from community profile for further communication.

      Best regards,
      Fatih

  • Great Work.

    If I check the connection, I get the following error:

    Connection to "i18n-helper" established. Response returned: "404: Not Found"

     

    Best regards

    • Thank you for the kind words Andreas!

      I think getting a 404 is ok. You should check this link specifically: https://i18nhelper-p732728trial.dispatcher.hanatrial.ondemand.com/neo-app.json

      Do you have any problems while using the plugin? Since it is on trial account it may need time to warm up. I will investigate if it is possible to use a CDN as a destination without problems.

      Best regards,
      Fatih

       

    • Thank you, Daniel! I'm updating the link. The documentation has really improved since I wrote the blog.

      Kind regards,
      Fatih

  • Great Plugin!

    I think it would make sense to exclude the "dist" folder, since it gets updated by deployment.

    Also I think the keyword detection fails, if there are numbers at the end of a keyword. At least for me it says there a missing keywords but they are definied and I checked case sensitivity.

     

    Greetings

    • Thank you for your feedback, Felix!

      I'm creating new issues for your feedback. I will test these issues when I have the time. Feel free to add details:

      https://github.com/fatihpense/webide-i18n-plugin/issues/2

      https://github.com/fatihpense/webide-i18n-plugin/issues/3

      Best regards,
      Fatih