Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
1462b025
Commit
1462b025
authored
Nov 08, 2018
by
Clint.Network
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging Culture Error
parent
b3561fde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
HomeController.cs
Stratis.Guru/Controllers/HomeController.cs
+2
-0
Startup.cs
Stratis.Guru/Startup.cs
+1
-1
No files found.
Stratis.Guru/Controllers/HomeController.cs
View file @
1462b025
...
...
@@ -35,6 +35,8 @@ namespace Stratis.Guru.Controllers
public
IActionResult
Index
()
{
var
rqf
=
Request
.
HttpContext
.
Features
.
Get
<
IRequestCultureFeature
>();
Console
.
WriteLine
(
JsonConvert
.
SerializeObject
(
rqf
.
RequestCulture
,
Formatting
.
None
));
double
displayPrice
=
0
;
double
last24Change
=
0
;
...
...
Stratis.Guru/Startup.cs
View file @
1462b025
...
...
@@ -103,7 +103,7 @@ namespace Stratis.Guru
new
CultureInfo
(
"de"
),
new
CultureInfo
(
"cn"
)
};
app
.
UseRequestLocalization
(
new
RequestLocalizationOptions
{
DefaultRequestCulture
=
new
RequestCulture
(
"en-US"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment