Skip to content

Commit

Permalink
Minor Fix to French NewGame
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyasource committed Jan 3, 2024
1 parent 0c8f519 commit de0a797
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,14 @@ export let textLanguages = {
es: "búsqueda automática",
hi: "स्वत: संपत्ति खोजें",
ru: "автоматический поиск",
fr: "Recherche <br /> automatique",
fr: "Recherche automatique",
},
"find assets": {
jp: "資産を見つける",
es: "encontrar activos",
hi: "संपत्ति खोजें",
ru: "найти активы",
fr: "Trouver des <br /> éléments graphiques",
fr: "Trouver des éléments graphiques",
},
"locate game": {
jp: "ゲームを探す",
Expand Down
25 changes: 17 additions & 8 deletions src/modals/NewGame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
foundIconImageIndex,
setFoundIconImageIndex,
language,
windowWidth,
} from "../Signals";

import { Show, createSignal } from "solid-js";
Expand Down Expand Up @@ -909,10 +910,14 @@ export function NewGame() {
setFoundLogoImage(undefined);
setFoundIconImage(undefined);
}}>
<Show when={language() == "fr"}>
<p
innerHTML={translateText("auto find assets")}
className="text-[10px]"></p>
<Show when={language() == "fr" && windowWidth() >= 1500}>
{translateText("auto find assets")}
</Show>

<Show when={language() == "fr" && windowWidth() <= 1500}>
<p className="text-[10px] text-clip w-[70px]">
{translateText("auto find assets")}
</p>
</Show>

<Show when={language() != "fr"}>
Expand All @@ -938,10 +943,14 @@ export function NewGame() {
gameName(),
});
}}>
<Show when={language() == "fr"}>
<p
innerHTML={translateText("find assets")}
className="text-[10px]"></p>
<Show when={language() == "fr" && windowWidth() >= 1500}>
{translateText("find assets")}
</Show>

<Show when={language() == "fr" && windowWidth() <= 1500}>
<p className="text-[10px] text-clip w-[100px]">
{translateText("find assets")}
</p>
</Show>

<Show when={language() != "fr"}>
Expand Down

0 comments on commit de0a797

Please sign in to comment.