damianedwards
39f40d2c5f
Fix references to include beta-*
2015-05-29 11:46:24 -07:00
damianedwards
5eda65f336
Fix default path in CultureInfoGenerator:
...
- #26
2015-05-28 12:45:52 -07:00
damianedwards
1a47d19bb3
Introduces IStringLocalizer.GetAllStrings to replace direct IEnumerable impl:
...
- #18
Support not loading ancestor culture strings on IStringLocalizer.GetAllStrings:
- #23
2015-05-28 12:25:03 -07:00
damianedwards
90ca64c3dd
Statics be gone!
...
- Cleaned up ctors of ResourceManagerStringLocalizer and ResourceManagerWithCultureStringLocalizer too
2015-05-28 12:14:03 -07:00
Pranav K
59033fed80
Updating release NuGet.config
2015-05-27 18:08:52 -07:00
Pranav K
34223d892c
Adding xunit feed to release
2015-05-27 18:01:44 -07:00
Pranav K
12bf8f28e0
Updating release NuGet.Config
2015-05-27 16:35:43 -07:00
Damian Edwards
3b02fc8c19
Merge pull request #24 from hishamco/dev
...
Remove unnecessary using directives
2015-05-21 13:59:39 -07:00
Hisham Abdullah Bin Ateya
8382170178
Unnecessary using directives
2015-05-21 03:44:19 +03:00
damianedwards
8deb0b1137
Merge branch 'hishamco-dev' into dev
2015-05-20 16:23:30 -07:00
damianedwards
5c7d811aa6
Fix the merge
2015-05-20 16:22:54 -07:00
damianedwards
e5a0918054
Merge branch 'dev' of https://github.com/hishamco/Localization into hishamco-dev
...
Conflicts:
src/Microsoft.AspNet.Localization/CustomRequestCultureStrategy.cs
src/Microsoft.AspNet.Localization/IApplicationBuilderExtensions.cs
src/Microsoft.Framework.Localization/ResourceManagerStringLocalizer.cs
2015-05-20 16:17:57 -07:00
damianedwards
4ba159afe7
Removed Moq from tests & enabled .NET Core
...
- Introduced AssemblyWrapper to enable testing
- Cleaned up properties on ResourceManagerStringLocalizer
- #15
Change "Strategy" to "Provider"
- #19
2015-05-20 14:41:52 -07:00
damianedwards
9384848cc7
Cache walk of the culture tree when building resource name list:
...
- #15
2015-05-20 14:41:36 -07:00
Troy Dai
f6119d4856
Update references
...
Microsoft.Framework.NotNullAttribute.Internal =>
Microsoft.Framework.NotNullAttribute.Sources
2015-05-20 12:41:17 -07:00
damianedwards
b86af22c4d
Fix inconsistent terminology name/key
2015-05-18 16:48:59 -07:00
damianedwards
6abeff9f09
Add missing [NotNull] attributes on StringLocalizerExtensions
2015-05-18 12:12:47 -07:00
damianedwards
cda137ca9f
Drop leading "I" from IStringLocalizerExtensions
2015-05-18 10:11:01 -07:00
damianedwards
2ba7049648
Moved methods off of IStringLocalizer and into extension methods
2015-05-15 12:37:02 -07:00
damianedwards
ecfb7f342a
Sort project.json dependencies
2015-05-15 12:14:14 -07:00
damianedwards
2431e1a542
Move CultureInfoCache into its own package.
2015-05-13 15:50:00 -07:00
Eilon Lipton
805dc3f25b
Update Home master -> Home dev
2015-05-12 11:53:31 -07:00
Chris R
f4d18f5a5d
Use wildcard dependency version.
2015-05-12 06:39:15 -07:00
damianedwards
21dc2909a1
Made IRequestCultureStrategy async to support things like user profile lookup
2015-05-11 18:29:03 -07:00
damianedwards
d22adcbef0
Remove RequestCulture caching as perf testing shows it has no benefit
2015-05-11 18:05:36 -07:00
David Fowler
5f12c3b1e3
Made build.sh executable
2015-05-11 17:55:59 -07:00
damianedwards
bcabbbc9b8
Fix Travis by pinning to earlier Mono
2015-05-11 17:14:57 -07:00
damianedwards
306d71ef43
Moved some things around:
...
- Options are now given to strategies
- Options only contains properties relevant to the middleware itself. Strategies can have their own properties, e.g. AcceptLanguageHeaderRequestCultureStrategy limits the number of values in the header to try
- Strategies now derive from common base class and validate against the options, e.g. app specified supported cultures
- Renamed RequestLocalizationMiddlewareOptions to RequestLocalizationOptions
- Fixed missing doc comments
2015-05-11 15:28:50 -07:00
damianedwards
9834a27728
Culture names are now limited to a known list:
...
- Added tool to generate a set of known culture names from the OS/Fx
- CultureInfoCache is now limited to only caching/returning cultures from the known list
- #6
2015-05-11 12:58:18 -07:00
damianedwards
ca4b85e19f
Added missing doc comments
2015-05-07 18:19:54 -07:00
damianedwards
944c84bc5d
Implemented CookieRequestCultureStrategy & other changes:
...
- Updated sample to enable setting/clearing cultures via cookie
- Cache CultureInfo construction as it's not built into .NET Core
- Cache RequestCulture construction as they're immutable anyway and created lots per app if the middleware is running
- Fix issue where by invalid culture names were not handled (it crashed)
- Handle the pesky favicon.ico request from browsers
- Ignore .vs folder
2015-05-07 18:11:10 -07:00
Hisham Abdullah Bin Ateya
91b3ea4547
Using expression-bodies methods
2015-05-08 01:52:03 +03:00
damianedwards
ec8ede5d8a
Fixed missing resource caching issue in ResourceManagerStringLocalizer
2015-05-07 10:32:59 -07:00
damianedwards
41fe215027
Sample improvements
2015-05-06 18:21:34 -07:00
damianedwards
3dc0d40f7d
Added a sample & fixed some issues it found
2015-05-06 18:09:59 -07:00
damianedwards
b11f7d51c3
Bunch of changes:
...
- Implemented pluggable strategies for determining request culture
- Added NotNull on public APIs
- Added support for a default request culture
- Added options class for configuring the middleware
- Improved the query string logic to support separate formatting & language cultures
- Implemented the logic for accept-language header
- Added more doc comments
2015-05-06 16:51:23 -07:00
Damian Edwards
5795d331bc
Update README.md
2015-05-06 11:12:34 -07:00
damianedwards
acd643660a
Added missing descriptions
2015-05-06 10:53:25 -07:00
damianedwards
52f7aa9540
Rename file
2015-05-05 23:32:44 -07:00
damianedwards
9eede89418
Initial commit
2015-05-05 23:27:25 -07:00