Added a signature legal agreement warning and integrated the resource file (resx) as a JavaScript object into the _Layout.cshtml file. This enables the agreement warning to support multiple languages.
This commit is contained in:
@@ -28,11 +28,5 @@ namespace EnvelopeGenerator.Web.Controllers.Test
|
||||
|
||||
[HttpGet("culture")]
|
||||
public IActionResult GetCultures(string? lang = null) => lang is null ? Ok(_cultures) : Ok(_cultures[lang]);
|
||||
|
||||
[HttpGet("to-culture-info")]
|
||||
public IActionResult ToCultureInfo(string locale) => Ok(locale.ToCultureInfo());
|
||||
|
||||
[HttpGet("two-letter-iso-language-name")]
|
||||
public IActionResult TwoLetterISOLanguageName(string locale) => Ok(locale.TwoLetterISOLanguageName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user