Skip to content

Commit

Permalink
Merge pull request #2829 from online-go/fixes
Browse files Browse the repository at this point in the history
More fixes from import update pass
  • Loading branch information
anoek authored Sep 11, 2024
2 parents 40912f6 + 6a6ade8 commit f3d21bf
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
12 changes: 7 additions & 5 deletions i18n/audit-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

// cspell: words autotranslations conv "Türkçe" "hwat" "עִבְרִית" autotranslated autotranslation autotranslate

const deepl = require("deepl-node");
const fs = require("fs");
const PO = require("pofile");
const GoogleTranslate = require("@google-cloud/translate").v3.TranslationServiceClient;
const OpenAI = require("openai");
import fs from "fs";
import PO from "pofile";
import deepl from "deepl-node";
import GoogleTranslateModule from "@google-cloud/translate";
import OpenAI from "openai";

const GoogleTranslate = GoogleTranslateModule.v3.TranslationServiceClient;

let keys = fs.existsSync("./keys.json") ? JSON.parse(fs.readFileSync("./keys.json")) : null;

Expand Down
8 changes: 4 additions & 4 deletions i18n/create-unified-pot.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ performs the automatic translation of strings.

"use strict";

const fs = require("fs");
const XGettext = require("xgettext-js");
const SourceMapConsumer = require("source-map").SourceMapConsumer;
const PO = require("pofile");
import fs from "fs";
import XGettext from "xgettext-js";
import { SourceMapConsumer } from "source-map";
import PO from "pofile";

const MODE = process.argv[2] || "full";

Expand Down
4 changes: 2 additions & 2 deletions i18n/jsonify-po-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

// cspell: words autotranslations conv

const fs = require("fs");
const PO = require("pofile");
import fs from "fs";
import PO from "pofile";

async function main() {
const countries = JSON.parse(await fs.promises.readFile("./build/countries.json", "utf-8"));
Expand Down
5 changes: 2 additions & 3 deletions src/components/Markdown/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import * as React from "react";
import markdownit from "markdown-it"; // cspell:disable-line
import markdown_it from "markdown-it";
import sanitizeHtml from "sanitize-html";
//import moment from "moment";
import { profanity_filter } from "@/lib/profanity_filter";
Expand All @@ -29,8 +29,7 @@ interface MarkdownProps {

interface MarkdownState {}

// cspell:disable-next-line
const md = markdownit({
const md = markdown_it({
html: true,
linkify: true,
typographer: true,
Expand Down
Binary file modified src/views/Game/tree-lastnode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/views/Game/tree-node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/views/Game/tree-vline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/views/Play/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class Play extends React.Component<{}, PlayState> {
C.handicap_text = C.handicap;
}

console.log(C);
// console.log(C);

if (C.komi === null) {
C.komi_text = _("Auto");
Expand Down Expand Up @@ -763,7 +763,7 @@ export class Play extends React.Component<{}, PlayState> {
return (
<div className="automatch-container">
<div className="automatch-header">
<div>{_("Automatch Finder")}</div>
<div>{_("Automatch finder")}</div>
<div className="btn-group">
<button
className={size_enabled("9x9") ? "primary sm" : "sm"}
Expand Down

0 comments on commit f3d21bf

Please sign in to comment.