Skip to content

Commit

Permalink
Fixed bugs in localization controller
Browse files Browse the repository at this point in the history
  • Loading branch information
asvishnyakov committed Jun 6, 2017
1 parent a6c285a commit 2c4a4e6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class LocalizationController : ApiController
private const string LocalizationFilesFormat = ".json";
private const string LocalizationFilesFolder = "Localizations";
private const string InternationalizationFilesFormat = ".js";
private const string InternationalizationFilesFolder = "Scripts\\i18n";
private const string InternationalizationFilesFolder = "Scripts\\i18n\\angular";

private readonly IModuleCatalog _moduleCatalog;

Expand Down Expand Up @@ -55,6 +55,7 @@ public JObject GetLocalization(string lang = "en")
/// <returns></returns>
[HttpGet]
[Route("locales")]
[AllowAnonymous]
[ResponseType(typeof(string[]))]
public IHttpActionResult GetLocales()
{
Expand All @@ -72,6 +73,7 @@ public IHttpActionResult GetLocales()
/// <returns></returns>
[HttpGet]
[Route("regionalformats")]
[AllowAnonymous]
[ResponseType(typeof(string[]))]
public IHttpActionResult GetRegionalFormats()
{
Expand Down

0 comments on commit 2c4a4e6

Please sign in to comment.