locale for web app (#334)

* locale for web app

* more translations

* Rename profiles service to avoid locale conflict

* More translation work

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2024-03-22 17:43:03 -04:00
1 parent 019fde1e67
commit 42dadec020
54 files changed
+538 -151

No files matched your search

+5
View File
@@ -8,6 +8,11 @@ export class PlayletApi {
return await response.json();
}
static async getLocale(locale: string) {
const response = await fetch(`${PlayletApi.host()}/locale/${locale}/translations.ts`);
return await response.text();
}
static async getPreferencesFile() {
const response = await fetch(`${PlayletApi.host()}/config/preferences.json5`);
return await response.json();