Skip to content

Commit e6b0ad2

Browse files
committed
added nuspecs for new languages; updated version and release notes; updated readme
1 parent d6e7b34 commit e6b0ad2

File tree

10 files changed

+66
-20
lines changed

10 files changed

+66
-20
lines changed

.github/workflows/publish-schema-langs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# https://github.com/marketplace/actions/publish-nuget
22
name: Publish JsonSchema.Net Languages
33
on:
4-
push:
5-
branches:
6-
- master # Default release branch
7-
paths:
8-
- JsonSchema/nuspec/**
9-
- JsonSchema/Localization/**
4+
# disabling this until I can figure out how to stop building the languages into the main package.
5+
# push:
6+
# branches:
7+
# - master # Default release branch
8+
# paths:
9+
# - JsonSchema/nuspec/**
10+
# - JsonSchema/Localization/**
1011
workflow_dispatch:
1112

1213
jobs:

JsonSchema.Tests/LocalizationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void MinimumReturnsDefaultErrorMessageButInSpanish()
2727
{
2828
try
2929
{
30-
ErrorMessages.Culture = CultureInfo.GetCultureInfo("es");
30+
ErrorMessages.Culture = CultureInfo.GetCultureInfo("es-es");
3131

3232
JsonSchema schema = new JsonSchemaBuilder()
3333
.Type(SchemaValueType.Number)

JsonSchema/JsonSchema.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<PackageProjectUrl>https://github.com/gregsdennis/json-everything</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/gregsdennis/json-everything</RepositoryUrl>
1414
<PackageTags>json-schema validation schema json</PackageTags>
15-
<Version>4.1.2</Version>
16-
<FileVersion>4.1.2.0</FileVersion>
15+
<Version>4.1.3</Version>
16+
<FileVersion>4.1.3.0</FileVersion>
1717
<AssemblyVersion>4.0.0.0</AssemblyVersion>
1818
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1919
<AssemblyName>JsonSchema.Net</AssemblyName>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package>
3+
<metadata minClientVersion="2.12">
4+
<id>JsonSchema.Net.es</id>
5+
<version>2.0.0</version>
6+
<title>JsonSchema.Net Locale (es)</title>
7+
<authors>Greg Dennis</authors>
8+
<projectUrl>https://github.com/gregsdennis/json-everything</projectUrl>
9+
<icon>json-logo-256.png</icon>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>JsonSchema.Net Locale Norwegian (no)</description>
12+
<license type="expression">MIT</license>
13+
<repository type="git" url="https://github.com/gregsdennis/json-everything" />
14+
<language>es</language>
15+
</metadata>
16+
<files>
17+
<file src="es\JsonSchema.Net.resources.dll" target="lib\netstandard2.0\es" />
18+
<file src="json-logo-256.png" target="json-logo-256.png" />
19+
</files>
20+
<dependencies>
21+
<dependency id="JsonSchema.Net" version="4.0.0" />
22+
</dependencies>
23+
</package>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package>
3+
<metadata minClientVersion="2.12">
4+
<id>JsonSchema.Net.es</id>
5+
<version>2.0.0</version>
6+
<title>JsonSchema.Net Locale (es)</title>
7+
<authors>Greg Dennis</authors>
8+
<projectUrl>https://github.com/gregsdennis/json-everything</projectUrl>
9+
<icon>json-logo-256.png</icon>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>JsonSchema.Net Locale Swedish (sv)</description>
12+
<license type="expression">MIT</license>
13+
<repository type="git" url="https://github.com/gregsdennis/json-everything" />
14+
<language>es</language>
15+
</metadata>
16+
<files>
17+
<file src="es\JsonSchema.Net.resources.dll" target="lib\netstandard2.0\es" />
18+
<file src="json-logo-256.png" target="json-logo-256.png" />
19+
</files>
20+
<dependencies>
21+
<dependency id="JsonSchema.Net" version="4.0.0" />
22+
</dependencies>
23+
</package>

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,11 @@
2727
|Json.More.Net|<a href="https://www.nuget.org/packages/Json.More.Net/"><img alt="NuGet version" src="https://img.shields.io/nuget/vpre/Json.More.Net.svg?svg=true"></img>|<img alt="NuGet version" src="https://img.shields.io/nuget/dt/Json.More.Net.svg?svg=true"></img></a>|
2828
|Yaml2JsonNode|<a href="https://www.nuget.org/packages/Yaml2JsonNode/"><img alt="NuGet version" src="https://img.shields.io/nuget/vpre/Yaml2JsonNode.svg?svg=true"></img>|<img alt="NuGet version" src="https://img.shields.io/nuget/dt/Yaml2JsonNode.svg?svg=true"></img></a>|
2929

30-
<details>
31-
<summary>
32-
Supported languages for JsonSchema.Net
33-
</summary>
30+
Error message translations for JsonSchema.Net available in:
3431

35-
|||||
36-
|-|-|:-|:-|
37-
|Spanish|JsonSchema.Net.es|<a href="https://www.nuget.org/packages/JsonSchema.Net.es/"><img alt="NuGet version" src="https://img.shields.io/nuget/vpre/JsonSchema.Net.es.svg?svg=true"></img>|<img alt="NuGet version" src="https://img.shields.io/nuget/dt/JsonSchema.Net.es.svg?svg=true"></img></a>|
38-
39-
</details>
32+
- Spanish
33+
- Norwegian
34+
- Swedish
4035

4136
|Play | Learn|Discuss|Ask|Built with|
4237
|:-:|:-:|:-:|:-:|:-:|

json-everything.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ Global
295295
{9F30736E-69EC-4B7A-B78B-7C116C33F010}.Release|Any CPU.Build.0 = Release|Any CPU
296296
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
297297
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Debug|Any CPU.Build.0 = Debug|Any CPU
298-
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Localization|Any CPU.ActiveCfg = Debug|Any CPU
299-
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Localization|Any CPU.Build.0 = Debug|Any CPU
298+
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Localization|Any CPU.ActiveCfg = Release|Any CPU
299+
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Localization|Any CPU.Build.0 = Release|Any CPU
300300
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Release|Any CPU.ActiveCfg = Release|Any CPU
301301
{63EB78DD-70B3-41BB-86D1-0E7886F8A312}.Release|Any CPU.Build.0 = Release|Any CPU
302302
EndGlobalSection

tools/ApiDocsGenerator/release-notes/rn-json-schema.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ title: JsonSchema.Net
44
icon: fas fa-tag
55
order: "8.01"
66
---
7+
# [4.1.3](https://github.com/gregsdennis/json-everything/pull/470) {#release-schema-4.1.3}
8+
9+
[#457](https://github.com/gregsdennis/json-everything/issues/457) - [@pawel-wachalski](https://github.com/pawel-wachalski) added Norwegian and Swedish as supported translations for error messages.
10+
711
# [4.1.2](https://github.com/gregsdennis/json-everything/pull/469) {#release-schema-4.1.2}
812

913
[#468](https://github.com/gregsdennis/json-everything/issues/468) - [@Fresa](https://github.com/Fresa) found that `JsonNodeBaseDocument` doesn't properly resolve references in schemas that it contatins and proposed the fix.

0 commit comments

Comments
 (0)