From 4e943440d5999ba73c9c24e1a2e0695330aa92bb Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 4 Dec 2021 15:05:22 +0100 Subject: i18n French --- htdocs/public/me/index.ejs | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) (limited to 'htdocs/public/me') diff --git a/htdocs/public/me/index.ejs b/htdocs/public/me/index.ejs index 36feb43..93f59a9 100644 --- a/htdocs/public/me/index.ejs +++ b/htdocs/public/me/index.ejs @@ -1,20 +1,57 @@ <% global.title = lang.me.title; %> <%- include(`${private}/header.ejs`) %> -← <%- lang.global.back %> +← <%- lang.global.back %>

-<% data = child_process.execSync("curl https://jae.fi/me").toString(); %> +<% + + me = JSON.parse(child_process.execSync("curl https://pronouns.page/api/profile/get/Minteck").toString()); + + if (me.profiles[slang]) { + profile = me.profiles[slang]; + nlang = slang; + } else { + profile = me.profiles.en; + nlang = "en"; + } + +%>
- +

Minteck | Mia

-

Software Developer, Sysadmin, Furry

+

<%- lang.me.description %> | France
<%- lang.me.external %> pronouns.page

+
+
+

<%- lang.me.items[0] %>

+
    + <% for (url of Object.keys(profile.pronouns)) { if (profile.pronouns[url] >= 0) { %> +
  • <%- url.split("/")[url.split("/").length - 1].replace("&", "/") %>
  • + <% }} %> +
+
+
+

<%- lang.me.items[1] %>

+
    + <% for (name of Object.keys(profile.names)) { if (profile.names[name] >= 0) { %> +
  • <%- name %>
  • + <% }} %> +
+
+
+

<%- lang.me.items[2] %>

+ <% for (group of Object.keys(profile.words)) { for (word of Object.keys(profile.words[group])) { if (profile.words[group][word] >= 0) { %> +
  • style="font-weight: bold;"<% } %> <% if (profile.words[group][word] === 3) { %>style="opacity: .25;"<% } %> <% if (profile.words[group][word] === 2) { %>style="font-style: italic;"<% } %>><%- word %>
  • + <% }}} %> +
    +
    + <%- include(`${private}/footer.ejs`) %> \ No newline at end of file -- cgit