Skip to content

Commit

Permalink
Use keycloak 18.0.1 i18n resources #120
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jun 16, 2022
1 parent 1abf542 commit 3f6fe6c
Show file tree
Hide file tree
Showing 6 changed files with 12,144 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/generate-i18n-messages.ts
Expand Up @@ -9,7 +9,7 @@ import { rm_rf, rm_r } from "./tools/rm";
//@ts-ignore
const propertiesParser = require("properties-parser");

for (const keycloakVersion of ["11.0.3", "15.0.2", "16.1.0"]) {
for (const keycloakVersion of ["11.0.3", "15.0.2", "18.0.1"]) {
console.log({ keycloakVersion });

const tmpDirPath = pathJoin(getProjectRoot(), "tmp_xImOef9dOd44");
Expand Down
4,732 changes: 4,732 additions & 0 deletions src/lib/i18n/generated_kcMessages/18.0.1/account.ts

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions src/lib/i18n/generated_kcMessages/18.0.1/admin.ts

Large diffs are not rendered by default.

1,062 changes: 1,062 additions & 0 deletions src/lib/i18n/generated_kcMessages/18.0.1/email.ts

Large diffs are not rendered by default.

6,063 changes: 6,063 additions & 0 deletions src/lib/i18n/generated_kcMessages/18.0.1/login.ts

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/lib/i18n/index.tsx
Expand Up @@ -2,7 +2,7 @@ import "minimal-polyfills/Object.fromEntries";
//NOTE for later: https://github.com/remarkjs/react-markdown/blob/236182ecf30bd89c1e5a7652acaf8d0bf81e6170/src/renderers.js#L7-L35
import ReactMarkdown from "react-markdown";
import memoize from "memoizee";
import { kcMessages as kcMessagesBase } from "./generated_kcMessages/15.0.2/login";
import { kcMessages as kcMessagesBase } from "./generated_kcMessages/18.0.1/login";
import { assert } from "tsafe/assert";
import type { Equals } from "tsafe";

Expand Down Expand Up @@ -52,6 +52,8 @@ export const kcLanguageTags = [
"sv",
"tr",
"zh-CN",
"fi",
"lv",
] as const;

assert<Equals<KcLanguageTag, typeof kcLanguageTags[number]>>();
Expand Down

0 comments on commit 3f6fe6c

Please sign in to comment.