Skip to content

Commit 66f3f1e

Browse files
committed
fix: remove i18n content from caching
1 parent 41ba556 commit 66f3f1e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jwa-service/src/main/kotlin/pl/jwizard/jwa/service/RepositoryServiceBean.kt

+6-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ class RepositoryServiceBean(
7272
computeOnAbsent = { fetchRepositoryLanguageInfo(projectsBuildInfo, language) },
7373
revalidateData = { revalidateCache(projectsBuildInfo, it) },
7474
)
75-
return cachedRepositories
75+
return cachedRepositories.map {
76+
it.copy(
77+
name = i18n.tRaw(I18nLibDynamicSource.PROJECT_NAME, arrayOf(it.slug), language),
78+
description = i18n.tRaw(I18nLibDynamicSource.PROJECT_DESCRIPTION, arrayOf(it.slug), language),
79+
)
80+
}
7681
}
7782

7883
/**

0 commit comments

Comments
 (0)