mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-20 09:08:50 +01:00
Small refactorings
This commit is contained in:
parent
08840f6170
commit
7540881695
8 changed files with 13 additions and 19 deletions
|
|
@ -31,7 +31,7 @@ var (
|
|||
|
||||
func newTranslationRepository(context.Context) rest.Repository {
|
||||
dir := utils.NewMergeFS(
|
||||
http.FS(resources.Assets()),
|
||||
http.FS(resources.FS),
|
||||
http.Dir(filepath.Join(conf.Server.DataFolder, "resources")),
|
||||
)
|
||||
if err := loadTranslations(dir); err != nil {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ var _ = Describe("Translations", func() {
|
|||
Describe("I18n files", func() {
|
||||
var fs http.FileSystem
|
||||
BeforeEach(func() {
|
||||
fs = http.FS(resources.Assets())
|
||||
fs = http.FS(resources.FS)
|
||||
})
|
||||
It("contains only valid json language files", func() {
|
||||
dir, _ := fs.Open(consts.I18nFolder)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue