11 Commits

46 changed files with 572 additions and 53 deletions

View File

@@ -0,0 +1,33 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
}

View File

@@ -0,0 +1,29 @@
{
"$schema": "../../node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/**/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
]
}
}
]
}

View File

@@ -0,0 +1,75 @@
{
"name": "NwaifuAnime",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"prefix": "app",
"sourceRoot": "apps/NwaifuAnime/src",
"tags": [],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:application",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/NwaifuAnime",
"index": "apps/NwaifuAnime/src/index.html",
"browser": "apps/NwaifuAnime/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "apps/NwaifuAnime/tsconfig.app.json",
"inlineStyleLanguage": "less",
"assets": [
{
"glob": "**/*",
"input": "apps/NwaifuAnime/public"
}
],
"styles": ["apps/NwaifuAnime/src/styles.less"],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all",
"serviceWorker": "apps/NwaifuAnime/ngsw-config.json"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "NwaifuAnime:build:production"
},
"development": {
"buildTarget": "NwaifuAnime:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "NwaifuAnime:build"
}
},
"lint": {
"executor": "@nx/eslint:lint"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,59 @@
{
"name": "NwaifuAnime",
"short_name": "NwaifuAnime",
"theme_color": "#1976d2",
"background_color": "#fafafa",
"display": "standalone",
"scope": "./",
"start_url": "./",
"icons": [
{
"src": "icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable any"
}
]
}

View File

@@ -0,0 +1,11 @@
@if (serviceWorkerEnabled) {
@if (hasUpdate) {
<h1>Update available</h1>
<button (click)="update()">Update</button>
} @else {
<h1>Update not available</h1>
}
}
<app-header (searchEvent)="onSearch($event)"></app-header>
<div class="h-10"></div>
<router-outlet></router-outlet>

View File

@@ -0,0 +1,33 @@
import { Component } from "@angular/core";
import { RouterModule } from "@angular/router";
import { AppService } from "./app.service";
import { HeaderComponent } from "./components/header/header.component";
@Component({
standalone: true,
imports: [RouterModule, HeaderComponent],
selector: "app-root",
templateUrl: "./app.component.html",
styleUrl: "./app.component.less",
providers: [AppService],
})
export class AppComponent {
title = "NwaifuAnime";
constructor(private sw: AppService) {}
get hasUpdate() {
return this.sw.isUpdateAvailable;
}
update() {
this.sw.update();
}
get serviceWorkerEnabled() {
return this.sw.serviceWorkerEnabled;
}
onSearch(text: string) {
console.log(text);
}
}

View File

@@ -0,0 +1,11 @@
import { ApplicationConfig, provideZoneChangeDetection, isDevMode } from "@angular/core";
import { provideRouter } from "@angular/router";
import { appRoutes } from "./app.routes";
import { provideServiceWorker } from '@angular/service-worker';
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(appRoutes), provideServiceWorker('ngsw-worker.js', {
enabled: !isDevMode(),
registrationStrategy: 'registerWhenStable:30000'
})],
};

View File

@@ -0,0 +1,9 @@
import { Route } from "@angular/router";
import { HomeComponent } from "./components/home/home.component";
export const appRoutes: Route[] = [
{
path: "",
component: HomeComponent,
},
];

View File

@@ -0,0 +1,40 @@
import { Injectable } from "@angular/core";
import { SwUpdate } from "@angular/service-worker";
@Injectable({ providedIn: "root" })
export class AppService {
private hasUpdate = false;
constructor(private sw: SwUpdate) {
if (this.sw.isEnabled) {
console.log("service init");
this.sw.checkForUpdate();
this.sw.versionUpdates.subscribe((ev) => {
if (ev.type == "VERSION_DETECTED") {
console.log("update detected");
this.hasUpdate = true;
} else {
console.log("no update");
}
});
}
}
get isUpdateAvailable() {
return this.hasUpdate;
}
get serviceWorkerEnabled() {
return this.sw.isEnabled;
}
update() {
this.sw.activateUpdate().then((res) => {
if (res) {
console.log("updated");
this.hasUpdate = false;
window.location.reload();
}
});
}
}

View File

@@ -0,0 +1,23 @@
<div
class="header fixed flex justify-between w-full p-2 bg-gray-700 md:h-8 h-auto items-center md:flex-row flex-col md:gap-0 gap-3"
>
<div class="flex justify-between flex-row w-full align-middle">
<h1 class="text-white">NwaifuAnime</h1>
<!-- Search bar on small screens -->
<button type="button" class="md:hidden" (click)="changeMenu()">
<i [class]="menuBtnClass"></i>
</button>
</div>
<!-- Search bar on big screens -->
<div [class]="searchBarClass">
<input
type="search"
#searchInput
class="outline-none ps-1 text-sm leading-6 w-full border-0 bg-transparent border-r border-gray-700"
/>
<button class="align-middle w-[100px] text-center" type="submit" (click)="search()">
<span class="text-sm text-black h-full">Поиск</span>
</button>
</div>
</div>

View File

@@ -0,0 +1,3 @@
.header {
transition: height 0.3s;
}

View File

@@ -0,0 +1,33 @@
import { CommonModule } from "@angular/common";
import { Component, ElementRef, EventEmitter, Output, ViewChild } from "@angular/core";
@Component({
selector: "app-header",
templateUrl: "./header.component.html",
styleUrls: ["./header.component.less"],
standalone: true,
imports: [CommonModule],
})
export class HeaderComponent {
@Output() searchEvent: EventEmitter<string> = new EventEmitter();
@ViewChild("searchInput") searchInput: ElementRef<HTMLInputElement> | null = null;
menuOpened = false;
changeMenu() {
this.menuOpened = !this.menuOpened;
}
get menuBtnClass(): string {
return `lni ${this.menuOpened ? "lni-close" : "lni-menu"} text-white`;
}
get searchBarClass(): string {
return `search-bar bg-slate-300 md:w-[50%] w-full md:m-0 ms-2 me-2 max-h-6 md:flex justify-start flex-row items-center rounded-md ${this.menuOpened ? "flex" : "hidden"}`;
}
search() {
if (this.searchInput) {
const text = this.searchInput.nativeElement.value;
this.searchEvent.emit(text);
}
}
}

View File

@@ -0,0 +1 @@
<h1>It's home component</h1>

View File

@@ -0,0 +1,11 @@
import { CommonModule } from "@angular/common";
import { Component } from "@angular/core";
@Component({
standalone: true,
selector: "app-home",
templateUrl: "./home.component.html",
styleUrls: ["./home.component.less"],
imports: [CommonModule],
})
export class HomeComponent {}

View File

@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>NwaifuAnime</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link href="https://cdn.lineicons.com/4.0/lineicons.css" rel="stylesheet" />
<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#1976d2" />
</head>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>
</html>

View File

@@ -0,0 +1,5 @@
import { bootstrapApplication } from "@angular/platform-browser";
import { appConfig } from "./app/app.config";
import { AppComponent } from "./app/app.component";
bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));

View File

@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@@ -0,0 +1,14 @@
const { createGlobPatternsForDependencies } = require("@nx/angular/tailwind");
const { join } = require("path");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
join(__dirname, "src/**/!(*.stories|*.spec).{ts,html}"),
...createGlobPatternsForDependencies(__dirname),
],
theme: {
extend: {},
},
plugins: [],
};

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
},
"files": ["src/main.ts"],
"include": ["src/**/*.d.ts"],
"exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"]
}

View File

@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"compilerOptions": {},
"exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"]
}

View File

@@ -0,0 +1,30 @@
{
"compilerOptions": {
"target": "es2022",
"useDefineForClassFields": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.editor.json"
},
{
"path": "./tsconfig.app.json"
}
],
"extends": "../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}

View File

@@ -1,6 +1,6 @@
@if (elements_data.length) {
<h1>Всего: {{ elements_data.length }}</h1>
<h2>Файл: {{ fileName }}</h2>
<h1>{{ "ROW_COUNT_LABEL" | translate }}: {{ elements_data.length }}</h1>
<h2>{{ "FILE_NAME_LABEL" | translate }}: {{ fileName }}</h2>
}
<div id="elements">
@for (item of elements_data; track $index) {

View File

@@ -1,5 +1,6 @@
import { CommonModule } from "@angular/common";
import { Component, Input, OnInit, QueryList, ViewChildren } from "@angular/core";
import { AfterViewInit, Component, Input, QueryList, ViewChildren } from "@angular/core";
import { TranslationPipe } from "../../../../pipes/translation.pipe";
import { NpsFile, TranslateData } from "../../dto/translate_data.dto";
import { TranslateBlockComponent } from "../translate_block/translate_block.component";
@@ -8,9 +9,9 @@ import { TranslateBlockComponent } from "../translate_block/translate_block.comp
templateUrl: "./text_list.component.html",
styleUrls: ["./text_list.component.scss"],
standalone: true,
imports: [CommonModule, TranslateBlockComponent],
imports: [CommonModule, TranslateBlockComponent, TranslationPipe],
})
export class TextListComponent implements OnInit {
export class TextListComponent implements AfterViewInit {
@ViewChildren("translateBlock") translate_blocks: QueryList<TranslateBlockComponent> | null =
null;
fileName = "";
@@ -18,13 +19,14 @@ export class TextListComponent implements OnInit {
@Input() set elements(el: TranslateData[]) {
this.elements_data = el;
localStorage.setItem("translations", JSON.stringify(this.elements_data));
this.ngAfterViewInit();
}
get elements() {
return this.elements_data;
}
ngOnInit(): void {
ngAfterViewInit(): void {
const data = localStorage.getItem("original_file");
if (data) {
const file: NpsFile = JSON.parse(data);

View File

@@ -1,6 +1,7 @@
<div class="element">
<h2>{{ index + 1 }}</h2>
<div class="fields">
<h2>{{ item.name }}</h2>
<nwui-textarea [contenteditable]="false">{{ item.english_text }}</nwui-textarea>
<nwui-textarea
#translatedText
@@ -11,8 +12,14 @@
>
</div>
<div class="btns">
<nwui-button (click)="sendToGoogleTranslate()" [disabled]="translateLoading">Translate</nwui-button>
<nwui-button (click)="isEditing = !isEditing" [disabled]="isEditing">Edit</nwui-button>
<nwui-button (click)="clear()" [disabled]="!item.translated_text.length">Clear</nwui-button>
<nwui-button (click)="sendToGoogleTranslate()" [disabled]="translateLoading">{{
"TRANSLATE_BTN" | translate
}}</nwui-button>
<nwui-button (click)="isEditing = !isEditing" [disabled]="isEditing">{{
"EDIT_BTN" | translate
}}</nwui-button>
<nwui-button (click)="clear()" [disabled]="!item.translated_text.length">{{
"CLEAR_ROW_BTN" | translate
}}</nwui-button>
</div>
</div>

View File

@@ -1,38 +1,45 @@
import { CommonModule } from '@angular/common';
import { Component, Input, OnInit, ViewChild } from '@angular/core';
import { NWUIButtonComponent, NWUITextAreaComponent } from '@nwaifu-ui';
import { LocalStorageKeys } from '../../consts';
import { TranslateData } from '../../dto/translate_data.dto';
import { ETranslateService } from '../../services/translate.enums';
import { TranslateService } from '../../services/translate.service';
import { CommonModule } from "@angular/common";
import { Component, Input, OnInit, ViewChild } from "@angular/core";
import { NWUIButtonComponent, NWUITextAreaComponent } from "@nwaifu-ui";
import { TranslationPipe } from "../../../../pipes/translation.pipe";
import { LocalStorageKeys } from "../../consts";
import { TranslateData } from "../../dto/translate_data.dto";
import { ETranslateService } from "../../services/translate.enums";
import { TranslateService } from "../../services/translate.service";
@Component({
selector: 'app-translate-block',
templateUrl: './translate_block.component.html',
styleUrls: ['./translate_block.component.scss'],
selector: "app-translate-block",
templateUrl: "./translate_block.component.html",
styleUrls: ["./translate_block.component.scss"],
standalone: true,
imports: [CommonModule, NWUIButtonComponent, NWUITextAreaComponent],
imports: [CommonModule, NWUIButtonComponent, NWUITextAreaComponent, TranslationPipe],
providers: [TranslateService],
})
export class TranslateBlockComponent implements OnInit {
@ViewChild('translatedText') translatedText: NWUITextAreaComponent | null = null;
@Input({ required: true }) item: TranslateData = { english_text: '', translated_text: '' };
@ViewChild("translatedText") translatedText: NWUITextAreaComponent | null = null;
@Input({ required: true }) item: TranslateData = {
english_text: "",
translated_text: "",
name: "",
};
@Input({ required: true }) index = 0;
translateLoading = false;
isEditing = false;
saveChanges() {
const data: TranslateData[] = JSON.parse(localStorage.getItem(LocalStorageKeys.TRANSLATIONS) ?? '[]');
const data: TranslateData[] = JSON.parse(
localStorage.getItem(LocalStorageKeys.TRANSLATIONS) ?? "[]",
);
if (!data.length) {
alert('No data');
alert("No data");
return;
}
data[this.index] = this.item;
localStorage.setItem('translations', JSON.stringify(data));
localStorage.setItem("translations", JSON.stringify(data));
}
ngOnInit(): void {
this.isEditing = this.item.translated_text === '';
this.isEditing = this.item.translated_text === "";
}
constructor(private translateService: TranslateService) {}
@@ -40,7 +47,8 @@ export class TranslateBlockComponent implements OnInit {
private sendToTranslate(service: ETranslateService = ETranslateService.GOOGLE) {
this.translateLoading = true;
this.translateService.translate(this.item.english_text, service).subscribe((text) => {
if (this.translatedText) if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = text;
if (this.translatedText)
if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = text;
this.item.translated_text = text;
this.isEditing = false;
this.translateLoading = false;
@@ -62,14 +70,16 @@ export class TranslateBlockComponent implements OnInit {
saveTranslate(text: string) {
this.isEditing = false;
if (this.translatedText) if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = '';
if (this.translatedText)
if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = "";
this.item.translated_text = text;
this.saveChanges();
}
clear() {
this.item.translated_text = '';
this.item.translated_text = "";
this.isEditing = true;
if (this.translatedText) if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = '';
if (this.translatedText)
if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = "";
this.saveChanges();
}
}

View File

@@ -1,6 +1,7 @@
export interface TranslateData {
english_text: string;
translated_text: string;
name: string;
}
export interface NpsFile {
file_name: string;

View File

@@ -3,20 +3,33 @@ import { TranslateData } from "../dto/translate_data.dto";
export function parse(text: string): TranslateData[] {
// Find all TEXT attr data
const result: TranslateData[] = [];
const re = /<[^>]*TEXT="(?<textAttr>[^>"]+)"[^>]*>|<[^>]*>|\/\/.*|\s*\n\s*/gm;
const re = /^(?!\/\/)<[^>]*TEXT="(?<textAttr>[^>"]+)"[^>]*>/gim;
for (const match of text.matchAll(re)) {
console.log(match);
if (match.groups?.["textAttr"])
result.push({ english_text: match.groups?.["textAttr"], translated_text: "" });
result.push({
english_text: match.groups?.["textAttr"],
translated_text: "",
name: "Choice (without name)",
});
}
const replaced_text = text.replace(re, "\n").replace(/\s*\n\s*/gm, "\n");
result.push(
...replaced_text
.split("\n")
.map((line) => line.trim())
.filter((line) => line.length > 0)
.map((line) => ({ english_text: line, translated_text: "" })),
);
const name_re = /<voice name="(?<name>[^"]+)"[^>]*>(?<text>[\s\S]*?)(?=<voice|$)/gi;
for (const match of text.matchAll(name_re)) {
if (match.groups?.["name"] && match.groups?.["text"]) {
const name_text = match.groups?.["text"];
const name = match.groups?.["name"];
const re = /<[^>]*>|\/\/.*|\s*\n\s*/gm;
name_text
.split(re)
.filter((line) => line.length > 0)
.map((line) => line.trim())
.forEach((line) => {
result.push({ english_text: line, translated_text: "", name: name });
});
}
}
console.log(result);
return result;
}

View File

@@ -1,7 +1,7 @@
<div class="btns">
<div id="op_btns">
<nwui-button (click)="fileInput.click()">
<span><i class="lni lni-upload"></i> Upload</span>
<span><i class="lni lni-upload"></i> {{ "UPLOAD_BTN" | translate }}</span>
<input
type="file"
(change)="submitFile($event)"
@@ -11,17 +11,17 @@
/>
</nwui-button>
<nwui-button (click)="onSaveClicked()">
<span><i class="lni lni-save"></i> Save</span>
<span><i class="lni lni-save"></i> {{ "SAVE_BTN" | translate }}</span>
</nwui-button>
@if (this.elements.length) {
<nwui-button (click)="clearAllTranslations()" [disabled]="!has_translations">
<span><i class="lni lni-trash-can"></i> Clear translations</span>
<span><i class="lni lni-trash-can"></i> {{ "CLEAR_TRANSLATIONS_BTN" | translate }}</span>
</nwui-button>
<nwui-button (click)="getAllTranslations()">
<span><i class="lni lni-google"></i> Translate all</span>
<span><i class="lni lni-google"></i> {{ "TRANSLATE_ALL_BTN" | translate }}</span>
</nwui-button>
<nwui-button (click)="onClearClicked()">
<span><i class="lni lni-trash-can"></i> Clear</span>
<span><i class="lni lni-trash-can"></i> {{ "CLEAR_BTN" | translate }}</span>
</nwui-button>
}
</div>

View File

@@ -3,6 +3,7 @@ import { AfterViewInit, Component, OnInit, ViewChild } from "@angular/core";
import { Router } from "@angular/router";
import { NWUIButtonComponent } from "@nwaifu-ui";
import { fromEvent, map } from "rxjs";
import { TranslationPipe } from "../../pipes/translation.pipe";
import { TextListComponent } from "./components/text_list/text_list.component";
import { LocalStorageKeys } from "./consts";
import { NpsFile, TranslateData } from "./dto/translate_data.dto";
@@ -10,7 +11,7 @@ import { saveOriginalFile } from "./lib/file_tools";
import { parse } from "./lib/parser";
@Component({
standalone: true,
imports: [TextListComponent, CommonModule, NWUIButtonComponent],
imports: [TextListComponent, CommonModule, NWUIButtonComponent, TranslationPipe],
selector: "app-nitroplus",
templateUrl: "./nitroplus-translator.component.html",
styleUrl: "./nitroplus-translator.component.less",

View File

@@ -5,5 +5,15 @@
"TELEGRAM_LABEL": "Telegram channel",
"GITHUB_LABEL": "Admin's Github",
"GITEA_LABEL": "Neuro LLC Gitea",
"SOURCE_CODE_TITLE": "Source code"
"SOURCE_CODE_TITLE": "Source code",
"UPLOAD_BTN": "Upload",
"SAVE_BTN": "Save",
"CLEAR_TRANSLATIONS_BTN": "Clear translations",
"CLEAR_BTN": "Clear",
"ROW_COUNT_LABEL": "Row count",
"FILE_NAME_LABEL": "File name",
"TRANSLATE_BTN": "Translate",
"EDIT_BTN": "Edit",
"CLEAR_ROW_BTN": "Clear",
"TRANSLATE_ALL_BTN": "Translate all"
}

View File

@@ -5,5 +5,15 @@
"TELEGRAM_LABEL": "Telegramチャンネル",
"GITHUB_LABEL": "管理者Github",
"GITEA_LABEL": "Neuro LLC Gitea",
"SOURCE_CODE_TITLE": "ソースコード"
"SOURCE_CODE_TITLE": "ソースコード",
"UPLOAD_BTN": "アップロード",
"SAVE_BTN": "保存",
"CLEAR_TRANSLATIONS_BTN": "翻訳をクリア",
"CLEAR_BTN": "クリア",
"ROW_COUNT_LABEL": "行数",
"FILE_NAME_LABEL": "ファイル名",
"TRANSLATE_BTN": "翻訳",
"EDIT_BTN": "編集",
"CLEAR_ROW_BTN": "クリア",
"TRANSLATE_ALL_BTN": "すべて翻訳"
}

View File

@@ -5,5 +5,15 @@
"TELEGRAM_LABEL": "Телеграм канал",
"GITHUB_LABEL": "Github админа",
"GITEA_LABEL": "Neuro LLC Gitea",
"SOURCE_CODE_TITLE": "Исходный код"
"SOURCE_CODE_TITLE": "Исходный код",
"UPLOAD_BTN": "Загрузить",
"SAVE_BTN": "Сохранить",
"CLEAR_TRANSLATIONS_BTN": "Очистить переводы",
"CLEAR_BTN": "Очистить",
"ROW_COUNT_LABEL": "Количество строк",
"FILE_NAME_LABEL": "Имя файла",
"TRANSLATE_BTN": "Перевести",
"EDIT_BTN": "Редактировать",
"CLEAR_ROW_BTN": "Очистить",
"TRANSLATE_ALL_BTN": "Перевести все"
}

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,6 +1,6 @@
{
"name": "nwaifu-web",
"version": "0.0.1",
"version": "0.2.3",
"scripts": {
"ng": "ng",
"start": "nx serve NwaifuWeb",
@@ -19,6 +19,7 @@
"@angular/platform-browser": "18.0.3",
"@angular/platform-browser-dynamic": "18.0.3",
"@angular/router": "18.0.3",
"@angular/service-worker": "18.0.3",
"@fortawesome/angular-fontawesome": "0.14.1",
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-brands-svg-icons": "^6.4.2",

View File

@@ -13,9 +13,7 @@
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"paths": {
"@nwaifu-ui": [
"nwaifu-ui/src/index.ts"
]
"@nwaifu-ui": ["nwaifu-ui/src/index.ts"]
},
"baseUrl": ".",
"rootDir": "."