cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
popov Member
Member

Localizing the property pane using powerbi-visual tools 3

Hello.

I try powerbi-visual tools 3 and have problem with localizing the property pane in my CV. I created folder stringResources and placed file ru-RU.json in this folder.  Below fragments in code:

 

capabilities.json

"textSettings":{
"displayName": "Text Settings",
"displayNameKey": "o_tS_key",
"properties": {
"pattern": {
"displayName": "Pattern",
"displayNameKey": "o_tS_p_key1",
"type": {
"text": true
}
},
 
ru-RU.json
{
"locale": "ru-RU",
"values": {
"dr_m_key1": "Поля",
"o_tS_key": "Настройки текста",
"o_tS_p_key1": "Шаблон",
"fontColor": "Цвет",
"textSize": "Размер текста",
"alignment": "Выравнивание",
"fontFamily": "Семейство шрифтов"
}
}
 
pbiviz.json
"stringResources": ["stringResources/ru-RU.json"]
 
After run command npm run package I get message:
{ [Error: ENOENT: no such file or directory, open 'c:\Visuals\smartText\stringResources\ru-RU\resources.resjson']
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path:
   'c:\\Visuals\\smartText\\stringResources\\ru-RU\\resources.resjson' }
{ [Error: ENOENT: no such file or directory, open 'c:\Visuals\smartText\stringResources\ru-RU.json\resources.resjson']
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path:
   'c:\\Visuals\\smartText\\stringResources\\ru-RU.json\\resources.resjson' }
9 REPLIES 9
Moderator v-viig
Moderator

Re: Localizing the property pane using powerbi-visual tools 3

JSON format is no longer supported. Please use .resjson instead.

 

You can find example here.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

popov Member
Member

Re: Localizing the property pane using powerbi-visual tools 3

Thank you, @v-viig 

I created folder stringResources/ru-RU and placed file resources.resjson in folder. But what should I write in the pbiviz.json?

I tried 

"stringResources": ["stringResources/ru-RU"]
and 
"stringResources": ["stringResources"]
but it isn't work
Moderator v-viig
Moderator

Re: Localizing the property pane using powerbi-visual tools 3

As far as I know, localization will automatically be loaded. Pleae keep stringResources empty (stringResources: []).

 

Let us know if it resolves the issue.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

popov Member
Member

Re: Localizing the property pane using powerbi-visual tools 3

Hello, @v-viig

Unfortunately, I recived some error message.

Moderator v-viig
Moderator

Re: Localizing the property pane using powerbi-visual tools 3

What error message have you received? Can you share a screenshot?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

popov Member
Member

Re: Localizing the property pane using powerbi-visual tools 3

Of cource

Localization.png

Moderator v-viig
Moderator

Re: Localizing the property pane using powerbi-visual tools 3

We suggest to remove stringResources from pbiviz.json and run pbiviz package again.

 

If it won't help you we ask you to share the source code to debug this issue from our side.

 

By the way, what node.js version do you use?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

 

popov Member
Member

Re: Localizing the property pane using powerbi-visual tools 3

Hello, @v-viig

Unfortunately, your suggestion don't helped me. Error message and node.js version in screenshot below.

 

Localization error.png

 

Highlighted
Moderator v-viig
Moderator

Re: Localizing the property pane using powerbi-visual tools 3

Please share source code by sending it to Power BI Custom Visuals Support <pbicvsupport@microsoft.com>

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 261 members 2,632 guests
Please welcome our newest community members: