mirror of
https://github.com/artegoser/AnoPaper.git
synced 2025-02-23 20:51:27 +03:00
refactor: get localisation file
This commit is contained in:
parent
4e946879a2
commit
962cec0875
3 changed files with 11 additions and 3 deletions
|
@ -15,8 +15,10 @@
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { getNetLocale } from "../components/utils";
|
||||
|
||||
let en = {
|
||||
about_md: (await (await fetch("localisation/en/about.md")).text()) || "",
|
||||
about_md: await getNetLocale("en", "about.md"),
|
||||
Notes: "Notes",
|
||||
Write: "Write",
|
||||
Chat: "Chat",
|
||||
|
|
|
@ -15,8 +15,10 @@
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { getNetLocale } from "../components/utils";
|
||||
|
||||
let ru = {
|
||||
about_md: (await (await fetch("localisation/ru/about.md")).text()) || "",
|
||||
about_md: await getNetLocale("ru", "about.md"),
|
||||
Notes: "Заметки",
|
||||
Write: "Написать",
|
||||
Chat: "Чат",
|
||||
|
|
Loading…
Add table
Reference in a new issue