Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "vladsd"

I am getting messages now, not all, any updates from Mar 27 to 30 still do not come through...

FYI,

For my own services I can map routes with one line: [Route("myroute/[controller]/[action]")] in front AppService definition

One gotcha - methods needs to be defined for each function.

What I am asking is a fix for the framework issue.

Here is a link I found teaching how to document API with swagger <a class="postlink" href="https://swagger.io/blog/how-to-generate-openapi-swagger/">https://swagger.io/blog/how-to-generate ... i-swagger/</a>

I looked into fixing and found that "api/services/" is hard coded all over the place. It is better for creators of the framework to fix such a simple oversight.

Answer

Here you go, solution, not pretty but works:)

// reorg languages with english first
            var langs = abp.localization.languages;
            var languages = [];
            for (var i = 0; i < langs.length; i++) {
                var info = langs[i];
                if (info.name == 'en') languages.push(info);
            }
            for (var i = 0; i < langs.length; i++) {
                var info = langs[i];
                if (info.name != 'en') languages.push(info);
            }
            abp.localization.languages = languages;

After research I found a better solution to use ResourceFileLocalizationSource provided by apb

but it has bugs and does not work, see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/952">https://github.com/aspnetzero/aspnet-ze ... issues/952</a>

@aaron, if I find the tool to manage it translations and missing strings, I will share

Is there a reason why use XML files and not resx files to store resource strings. The tool I referenced before only supports resx files. It would be nice to be able to do proper string resource management in Visual Studio. Please advise.

@ismcagdas, I am surprised such an easy fix did not make into ABP v3.5.0

Hope you can find a time to include into next update.

Thank you.

Thanks. I know xml files and one can edit them one by one. I was hoping for better and integrated tool in VS to help to manage.

Showing 41 to 50 of 116 entries