summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-08-05 00:31:19 +0200
committerivarlovlie <git@ivarlovlie.no>2022-08-05 00:31:19 +0200
commite8e6ebf1341b2ebf356539f236f2bafa82d36ca6 (patch)
treeaa868889f3e310a6c65bc909933f41c5c61c9462
parenta84cb76da742c0928a3c72b8ff967b8313f0d269 (diff)
downloadgreatoffice-e8e6ebf1341b2ebf356539f236f2bafa82d36ca6.tar.xz
greatoffice-e8e6ebf1341b2ebf356539f236f2bafa82d36ca6.zip
.
-rw-r--r--apps/projects/src/.typesafe-i18n.json2
-rw-r--r--apps/projects/src/app/lib/i18n/i18n-util.async.ts8
-rw-r--r--apps/projects/src/app/lib/i18n/i18n-util.sync.ts5
-rw-r--r--apps/web-shared/src/styles/components/side-navigation.scss2
-rw-r--r--tests/IOL.GreatOffice.IntegrationTests/IOL.GreatOffice.IntegrationTests.csproj4
5 files changed, 7 insertions, 14 deletions
diff --git a/apps/projects/src/.typesafe-i18n.json b/apps/projects/src/.typesafe-i18n.json
index 9383a1c..74cca10 100644
--- a/apps/projects/src/.typesafe-i18n.json
+++ b/apps/projects/src/.typesafe-i18n.json
@@ -1,5 +1,5 @@
{
"adapter": "svelte",
- "$schema": "https://unpkg.com/typesafe-i18n@5.7.0/schema/typesafe-i18n.json",
+ "$schema": "https://unpkg.com/typesafe-i18n@5.11.0/schema/typesafe-i18n.json",
"outputPath": "app/lib/i18n"
} \ No newline at end of file
diff --git a/apps/projects/src/app/lib/i18n/i18n-util.async.ts b/apps/projects/src/app/lib/i18n/i18n-util.async.ts
index 75b90c9..3ccef5f 100644
--- a/apps/projects/src/app/lib/i18n/i18n-util.async.ts
+++ b/apps/projects/src/app/lib/i18n/i18n-util.async.ts
@@ -13,11 +13,11 @@ const localeTranslationLoaders = {
const updateDictionary = (locale: Locales, dictionary: Partial<Translations>) =>
loadedLocales[locale] = { ...loadedLocales[locale], ...dictionary }
+export const importLocaleAsync = async (locale: Locales) =>
+ (await localeTranslationLoaders[locale]()).default as unknown as Translations
+
export const loadLocaleAsync = async (locale: Locales): Promise<void> => {
- updateDictionary(
- locale,
- (await localeTranslationLoaders[locale]()).default as unknown as Translations
- )
+ updateDictionary(locale, await importLocaleAsync(locale))
loadFormatters(locale)
}
diff --git a/apps/projects/src/app/lib/i18n/i18n-util.sync.ts b/apps/projects/src/app/lib/i18n/i18n-util.sync.ts
index 7a1d51e..f1a8e9e 100644
--- a/apps/projects/src/app/lib/i18n/i18n-util.sync.ts
+++ b/apps/projects/src/app/lib/i18n/i18n-util.sync.ts
@@ -22,6 +22,5 @@ export const loadLocale = (locale: Locales): void => {
export const loadAllLocales = (): void => locales.forEach(loadLocale)
-export const loadFormatters = (locale: Locales): void => {
- loadedFormatters[locale] = initFormatters(locale)
-}
+export const loadFormatters = (locale: Locales): void =>
+ void (loadedFormatters[locale] = initFormatters(locale))
diff --git a/apps/web-shared/src/styles/components/side-navigation.scss b/apps/web-shared/src/styles/components/side-navigation.scss
index 0b30c7b..2e6597b 100644
--- a/apps/web-shared/src/styles/components/side-navigation.scss
+++ b/apps/web-shared/src/styles/components/side-navigation.scss
@@ -104,14 +104,12 @@ Usage: codyhouse.co/license
will-change: transform;
transform-origin: 50% 50%;
transform: rotate(-90deg);
- transition: transform .3s var(--ease-out);
> * {
transform-origin: 50% 50%;
stroke-dasharray: 20;
stroke-dashoffset: 0;
transform: translateY(0px);
- transition: transform .3s, stroke-dashoffset .3s;
transition-timing-function: var(--ease-out);
}
diff --git a/tests/IOL.GreatOffice.IntegrationTests/IOL.GreatOffice.IntegrationTests.csproj b/tests/IOL.GreatOffice.IntegrationTests/IOL.GreatOffice.IntegrationTests.csproj
index 92ed6b2..0376a10 100644
--- a/tests/IOL.GreatOffice.IntegrationTests/IOL.GreatOffice.IntegrationTests.csproj
+++ b/tests/IOL.GreatOffice.IntegrationTests/IOL.GreatOffice.IntegrationTests.csproj
@@ -18,8 +18,4 @@
<ProjectReference Include="..\..\server\IOL.GreatOffice.Api.csproj" />
<ProjectReference Include="..\..\server\src\IOL.GreatOffice.Api.csproj" />
</ItemGroup>
-
- <ItemGroup>
- <Folder Include="ServerTests" />
- </ItemGroup>
</Project>