Skip to content

Commit

Permalink
Local package support for WebWriter Web, several bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenf committed Nov 13, 2024
1 parent a6600e0 commit 90950fc
Show file tree
Hide file tree
Showing 55 changed files with 27,465 additions and 1,156 deletions.
17 changes: 17 additions & 0 deletions @webwriter/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@
animation: load 1.5s infinite ease;
user-select: none;
}
body:has(#load-local) #icon {
animation: none !important;
}
#load-local {
position: fixed;
top: calc(50% + 20px + 75px);
height: 75px;
left: 40%;
width: 20%;
font-size: 1.2rem;
padding: 0.25rem;
cursor: pointer;
&:not(:hover):not(:active) {
border: 2px solid darkgray;
background: white;
}
}
ww-app {
z-index: 10;
}
Expand Down
3 changes: 1 addition & 2 deletions @webwriter/core/lit-localize.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"sourceLocale": "en",
"targetLocales": ["de", "bg", "cs", "da", "nl", "et", "fi", "fr", "el", "hu", "it", "lv", "lt", "nb", "pl", "pt-PT", "ro", "ru", "sk", "sl", "es", "sv", "tr", "uk", "pt-BR", "ko", "ja", "id", "zh-hans"],
"tsConfig": "./tsconfig.json",

"output": {
"mode": "runtime",
"outputDir": "./localization/generated",
"localeCodesModule": "./@webwriter/core/localization/generated/locales.ts"
"localeCodesModule": "./@webwriter/core/localization/generated/locales.ts",
},

"interchange": {
Expand Down
67 changes: 33 additions & 34 deletions @webwriter/core/localization/bg.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1032,17 +1032,13 @@
<target>Улавяне</target>
</trans-unit>
<trans-unit id="s2b8f50c64be440f7">
<source>Select
<x id="0" equiv-text="${this.mediaType}"/>...
</source>
<source>Select <x id="0" equiv-text="${this.mediaType}"/>...</source>
<target>Изберете
<x id="0" equiv-text="${this.mediaType}"/>...
</target>
</trans-unit>
<trans-unit id="s739544d0c858c633">
<source>Or drop
<x id="0" equiv-text="${this.mediaType}"/> here
</source>
<source>Or drop <x id="0" equiv-text="${this.mediaType}"/> here</source>
<target>Или да отпадне
<x id="0" equiv-text="${this.mediaType}"/> тук
</target>
Expand Down Expand Up @@ -1140,10 +1136,7 @@
<target>Тази ключова дума е задължителна за джаджите</target>
</trans-unit>
<trans-unit id="h64cd12550420f6f1">
<source>Generate a
<x id="0" equiv-text="&lt;code&gt;"/>LICENSE
<x id="1" equiv-text="&lt;/code&gt;"/> file
</source>
<source>Generate a <x id="0" equiv-text="&lt;code&gt;"/>LICENSE<x id="1" equiv-text="&lt;/code&gt;"/> file</source>
<target>Генериране на
<x id="0" equiv-text="&lt;code&gt;"/>LICENSE
<x id="1" equiv-text="&lt;/code&gt;"/> файл
Expand Down Expand Up @@ -1178,17 +1171,13 @@
<target>Преглед на грешката</target>
</trans-unit>
<trans-unit id="h75b0cad9d9e80648">
<source>Stop watching files at
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/>.
</source>
<source>Stop watching files at <x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/>.</source>
<target>Спрете да гледате файлове в
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/>.
</target>
</trans-unit>
<trans-unit id="h0a75a995d1672be1">
<source>Start watching files at
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/> and reload the package if a file is changed.
</source>
<source>Start watching files at <x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/> and reload the package if a file is changed.</source>
<target>Започнете да гледате файлове в
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/> и презарежда
пакета, ако даден файл е променен.
Expand Down Expand Up @@ -1674,10 +1663,6 @@
<source>Install this widget package</source>
<target>Инсталирайте този пакет с джаджи</target>
</trans-unit>
<trans-unit id="s985f2db57913324b">
<source>Manage packages</source>
<target>Управление на пакети</target>
</trans-unit>
<trans-unit id="scdf536b65be39ec5">
<source> Create/import</source>
<target> Създаване/импорт</target>
Expand All @@ -1694,10 +1679,6 @@
<source>Import package</source>
<target>Внос на пакет</target>
</trans-unit>
<trans-unit id="s7de0061f53ba7472">
<source>Error importing </source>
<target>Грешка при импортиране </target>
</trans-unit>
<trans-unit id="s00065e45db8c0441">
<source>See developer tools for more details</source>
<target>Вижте Инструменти за разработчици за повече информация</target>
Expand Down Expand Up @@ -1867,18 +1848,14 @@
<target>Грешка при свързването</target>
</trans-unit>
<trans-unit id="sf52d840949a980d1">
<source>
<x id="0" equiv-text="${url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be deleted permanently. Are you sure?
</source>
<source><x id="0" equiv-text="${url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be deleted permanently. Are you sure?</source>
<target>
<x id="0" equiv-text="${url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/>
ще бъдат изтрити завинаги. Сигурни ли сте?
</target>
</trans-unit>
<trans-unit id="s9b7cd8860c8fc922">
<source>
<x id="0" equiv-text="${this.url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be overwritten. Are you sure?
</source>
<source><x id="0" equiv-text="${this.url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be overwritten. Are you sure?</source>
<target>
<x id="0" equiv-text="${this.url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/>
ще бъдат презаписани. Сигурни ли сте?
Expand Down Expand Up @@ -1917,9 +1894,7 @@
<target>Неподдържан тип на свойството '${desc.type}' (обработва се като JSON)</target>
</trans-unit>
<trans-unit id="sa00df4e39c72d3b4">
<source>
<x id="0" equiv-text="${desc.widget}"/> is not supported
</source>
<source><x id="0" equiv-text="${desc.widget}"/> is not supported</source>
<target>
<x id="0" equiv-text="${desc.widget}"/> не се поддържа
</target>
Expand Down Expand Up @@ -2108,6 +2083,30 @@
<source>Padding</source>
<target>Подложка</target>
</trans-unit>
<trans-unit id="s9295089d0ecc35ff">
<source>Advanced: Show with versions like 0.x.x in the package manager</source>
<target>Напреднали: Показване на версии като 0.x.x в мениджъра на пакети</target>
</trans-unit>
<trans-unit id="s71a0549fd71219c9">
<source>Show unstable packages</source>
<target>Показване на нестабилни пакети</target>
</trans-unit>
<trans-unit id="s0de0febab8a4beaf">
<source>Error reading this package</source>
<target>Грешка при четене на този пакет</target>
</trans-unit>
<trans-unit id="s69a49786a8009f43">
<source>Find packages...</source>
<target>Намерете пакети...</target>
</trans-unit>
<trans-unit id="s5e2cba97c0d971bd">
<source>Reload packages</source>
<target>Презареждане на пакети</target>
</trans-unit>
<trans-unit id="s7aaf0c06e69600f1">
<source>Error with </source>
<target>Грешка с </target>
</trans-unit>
</body>
</file>
</xliff>
</xliff>
67 changes: 33 additions & 34 deletions @webwriter/core/localization/cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1031,17 +1031,13 @@
<target>Zachycení</target>
</trans-unit>
<trans-unit id="s2b8f50c64be440f7">
<source>Select
<x id="0" equiv-text="${this.mediaType}"/>...
</source>
<source>Select <x id="0" equiv-text="${this.mediaType}"/>...</source>
<target>Vyberte
<x id="0" equiv-text="${this.mediaType}"/>...
</target>
</trans-unit>
<trans-unit id="s739544d0c858c633">
<source>Or drop
<x id="0" equiv-text="${this.mediaType}"/> here
</source>
<source>Or drop <x id="0" equiv-text="${this.mediaType}"/> here</source>
<target>Nebo upusťte od
<x id="0" equiv-text="${this.mediaType}"/> zde
</target>
Expand Down Expand Up @@ -1139,10 +1135,7 @@
<target>Toto klíčové slovo je vyžadováno pro widgety.</target>
</trans-unit>
<trans-unit id="h64cd12550420f6f1">
<source>Generate a
<x id="0" equiv-text="&lt;code&gt;"/>LICENSE
<x id="1" equiv-text="&lt;/code&gt;"/> file
</source>
<source>Generate a <x id="0" equiv-text="&lt;code&gt;"/>LICENSE<x id="1" equiv-text="&lt;/code&gt;"/> file</source>
<target>Vytvořit
<x id="0" equiv-text="&lt;code&gt;"/>LICENCE
<x id="1" equiv-text="&lt;/code&gt;"/> soubor
Expand Down Expand Up @@ -1177,17 +1170,13 @@
<target>Zobrazit chybu</target>
</trans-unit>
<trans-unit id="h75b0cad9d9e80648">
<source>Stop watching files at
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/>.
</source>
<source>Stop watching files at <x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/>.</source>
<target>Přestat sledovat soubory na
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/>.
</target>
</trans-unit>
<trans-unit id="h0a75a995d1672be1">
<source>Start watching files at
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/> and reload the package if a file is changed.
</source>
<source>Start watching files at <x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/> and reload the package if a file is changed.</source>
<target>Začněte sledovat soubory na adrese
<x id="0" equiv-text="&lt;b&gt;&lt;code&gt;${localPath}&lt;/code&gt;&lt;/b&gt;"/> a v případě
změny souboru balíček znovu načíst.
Expand Down Expand Up @@ -1672,10 +1661,6 @@
<source>Install this widget package</source>
<target>Instalace tohoto balíčku widgetů</target>
</trans-unit>
<trans-unit id="s985f2db57913324b">
<source>Manage packages</source>
<target>Správa balíčků</target>
</trans-unit>
<trans-unit id="scdf536b65be39ec5">
<source> Create/import</source>
<target> Vytvořit/importovat</target>
Expand All @@ -1692,10 +1677,6 @@
<source>Import package</source>
<target>Importní balíček</target>
</trans-unit>
<trans-unit id="s7de0061f53ba7472">
<source>Error importing </source>
<target>Chyba při importu </target>
</trans-unit>
<trans-unit id="s00065e45db8c0441">
<source>See developer tools for more details</source>
<target>Další podrobnosti naleznete v části Nástroje pro vývojáře</target>
Expand Down Expand Up @@ -1865,18 +1846,14 @@
<target>Chyba při připojování</target>
</trans-unit>
<trans-unit id="sf52d840949a980d1">
<source>
<x id="0" equiv-text="${url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be deleted permanently. Are you sure?
</source>
<source><x id="0" equiv-text="${url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be deleted permanently. Are you sure?</source>
<target>
<x id="0" equiv-text="${url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/>
budou trvale odstraněny. Jste si jisti?
</target>
</trans-unit>
<trans-unit id="s9b7cd8860c8fc922">
<source>
<x id="0" equiv-text="${this.url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be overwritten. Are you sure?
</source>
<source><x id="0" equiv-text="${this.url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/> will be overwritten. Are you sure?</source>
<target>
<x id="0" equiv-text="${this.url.searchParams.get(&quot;filename&quot;) ?? &quot;This file&quot;}"/>
budou přepsány. Jste si jisti?
Expand Down Expand Up @@ -1915,9 +1892,7 @@
<target>Nepodporovaný typ vlastnosti '${desc.type}' (zpracování jako JSON)</target>
</trans-unit>
<trans-unit id="sa00df4e39c72d3b4">
<source>
<x id="0" equiv-text="${desc.widget}"/> is not supported
</source>
<source><x id="0" equiv-text="${desc.widget}"/> is not supported</source>
<target>
<x id="0" equiv-text="${desc.widget}"/> není podporován
</target>
Expand Down Expand Up @@ -2106,6 +2081,30 @@
<source>Padding</source>
<target>Vycpávky</target>
</trans-unit>
<trans-unit id="s9295089d0ecc35ff">
<source>Advanced: Show with versions like 0.x.x in the package manager</source>
<target>Pokročilé: Zobrazení verzí jako 0.x.x ve správci balíčků</target>
</trans-unit>
<trans-unit id="s71a0549fd71219c9">
<source>Show unstable packages</source>
<target>Zobrazit nestabilní balíčky</target>
</trans-unit>
<trans-unit id="s0de0febab8a4beaf">
<source>Error reading this package</source>
<target>Chyba při čtení tohoto balíčku</target>
</trans-unit>
<trans-unit id="s69a49786a8009f43">
<source>Find packages...</source>
<target>Najděte balíčky...</target>
</trans-unit>
<trans-unit id="s5e2cba97c0d971bd">
<source>Reload packages</source>
<target>Nabíjení balíčků</target>
</trans-unit>
<trans-unit id="s7aaf0c06e69600f1">
<source>Error with </source>
<target>Chyba s </target>
</trans-unit>
</body>
</file>
</xliff>
</xliff>
Loading

0 comments on commit 90950fc

Please sign in to comment.