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:
1 parent
019fde1e67
commit
42dadec020
54 files changed
+538
-151
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user