Are these utilities for public use? It sounds like this would make i18n + react very simple, but I cannot get it to work. A barebones example app would be great to determine what is missing.
Re: public use – it is published under an Apache license.
I just need to see what part of the puzzle I am missing. I will try to show you guys an example of what I have with atlas-create-jira-plugin soon - but in the meantime if someone happens to have one thats great.
HI @mike1, the FE NPM packages are indeed intended to be publicly used to build Atlassian Server products and plugins. You should be able to find the manual in each of the
README.md files or on the NPM page:
You should also try checking the Webpack WRM package if you are not using it yet. It will help you with building modern Front-End applications:
Let me know if you have any further questions about the usage.
Thanks for clarifying its status. Through the process of creating a blank plugin I have translations working, so it must be a problem in my other project. Thanks again!
I’m having the same issue rn.
There seems to be an issue with webpack in dev mode when
I18n.getText translates into something like
The production mode seems to be working fine, not sure if it’s related to minification.
Hi @a.belostotskiy, are you by any chance using Babel 7?
If so, this a known bug that we have found this week and we will have to fix it in both webresource Java plugin and in the properties loader NPM package. I have just raised an issue for that, so you can track the status:
As for now, the only alternative is to temporarily downgrade your code to use Babel 6 if this is possible.
Yep, looks like it.
@babel/plugin-transform-modules-commonjs babel plugin in dev mode for now, which seems to be a valid workaround aswell.