From bde29d6958e9d12000ad923d1d4bd8844a7f58ef Mon Sep 17 00:00:00 2001 From: Niklas Buchfink <59048346+NiklasBuchfink@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:18:15 +0100 Subject: [PATCH 1/6] Create project.inlang&settings.json --- project.inlang&settings.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 project.inlang&settings.json diff --git a/project.inlang&settings.json b/project.inlang&settings.json new file mode 100644 index 00000000..c92f6fea --- /dev/null +++ b/project.inlang&settings.json @@ -0,0 +1,19 @@ +{ + "$schema":"https://inlang.com/schema/project-settings", + "sourceLanguageTag": "en", + "languageTags": [], + "modules": [ + "https://cdn.jsdelivr.net/npm/@inlang/plugin-json@latest/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js" + ], + "plugin.inlang.json": { + "pathPattern": "./src/localize/languages/{languageTag}.json", + "variableReferencePattern": [ + "{", + "}" + ] + } +} From 26a1b2a4704a422cf976c1a67352fa254de90d65 Mon Sep 17 00:00:00 2001 From: Niklas Buchfink <59048346+NiklasBuchfink@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:18:45 +0100 Subject: [PATCH 2/6] Rename project.inlang&settings.json to project.inlang/settings.json --- project.inlang&settings.json => project.inlang/settings.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename project.inlang&settings.json => project.inlang/settings.json (100%) diff --git a/project.inlang&settings.json b/project.inlang/settings.json similarity index 100% rename from project.inlang&settings.json rename to project.inlang/settings.json From c81a5d0b19ca45931dd57fcd4b959e20a0e46e82 Mon Sep 17 00:00:00 2001 From: Niklas Buchfink <59048346+NiklasBuchfink@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:20:45 +0100 Subject: [PATCH 3/6] Update settings.json --- project.inlang/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.inlang/settings.json b/project.inlang/settings.json index c92f6fea..cc9332b2 100644 --- a/project.inlang/settings.json +++ b/project.inlang/settings.json @@ -1,7 +1,7 @@ { "$schema":"https://inlang.com/schema/project-settings", "sourceLanguageTag": "en", - "languageTags": [], + "languageTags": [en, it, pt-BR, pt-PT], "modules": [ "https://cdn.jsdelivr.net/npm/@inlang/plugin-json@latest/dist/index.js", "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", From 52f9027c1e062e20f3c18c041aaa05b98666121c Mon Sep 17 00:00:00 2001 From: Niklas Buchfink <59048346+NiklasBuchfink@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:21:43 +0100 Subject: [PATCH 4/6] Update settings.json --- project.inlang/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.inlang/settings.json b/project.inlang/settings.json index cc9332b2..c6416fe2 100644 --- a/project.inlang/settings.json +++ b/project.inlang/settings.json @@ -1,7 +1,7 @@ { "$schema":"https://inlang.com/schema/project-settings", "sourceLanguageTag": "en", - "languageTags": [en, it, pt-BR, pt-PT], + "languageTags": ["en", "it", "pt-BR", "pt-PT"], "modules": [ "https://cdn.jsdelivr.net/npm/@inlang/plugin-json@latest/dist/index.js", "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", From 3db4e6cc6ccc201173e6414e6be0fe7f399322b3 Mon Sep 17 00:00:00 2001 From: Niklas Buchfink <59048346+NiklasBuchfink@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:36:52 +0100 Subject: [PATCH 5/6] Update README.md Update badge urls --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f878c630..5eb073d8 100644 --- a/README.md +++ b/README.md @@ -4220,6 +4220,6 @@ The Home Assistant container will get preconfigured during first initialization, 1. Hit 'Publish release'. ### Translations -[![translation badge](https://inlang.com/badge?url=github.com/dermotduffy/frigate-hass-card)](https://inlang.com/editor/github.com/dermotduffy/frigate-hass-card?ref=badge) +[![translation badge](https://badge.inlang.com/?url=github.com/dermotduffy/frigate-hass-card)](https://fink.inlang.com/github.com/dermotduffy/frigate-hass-card?ref=badge) To add translations, you can manually edit the JSON translation files in `src/localize/languages`, use the [inlang](https://inlang.com/) online editor, or run `yarn machine-translate` to add missing translations using AI from Inlang. From 5795421f02231bb98c7b66c40f703a6c28fbf616 Mon Sep 17 00:00:00 2001 From: Niklas Buchfink <59048346+NiklasBuchfink@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:37:43 +0100 Subject: [PATCH 6/6] Delete project.inlang.json --- project.inlang.json | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 project.inlang.json diff --git a/project.inlang.json b/project.inlang.json deleted file mode 100644 index 272e002d..00000000 --- a/project.inlang.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema":"https://inlang.com/schema/project-settings", - "sourceLanguageTag": "en", - "languageTags": [], - "modules": [ - "https://cdn.jsdelivr.net/npm/@inlang/plugin-json@4/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@1/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@1/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@1/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@1/dist/index.js" - ], - "plugin.inlang.json": { - "pathPattern": "./src/localize/languages/{languageTag}.json", - "variableReferencePattern": [ - "{", - "}" - ] - } -}