feat: add translated names for Devil Fruits and update related schemas
Build Docker Image / build (push) Successful in 1m33s

- Added support for translated names and French translated names in the DevilFruitRecord and Character interfaces.
- Updated JSON import/export scripts to handle new translated name fields.
- Enhanced scraping logic to extract translated names from the source.
- Modified database schema to include translated names for Devil Fruits.
- Updated daily fruit selection to include translated names for characters.
This commit is contained in:
2026-07-10 09:02:20 +02:00
parent efb0b3d330
commit d3fafd75c6
7 changed files with 1336 additions and 17 deletions
+3
View File
@@ -5,6 +5,9 @@ import { eq, and } from 'drizzle-orm';
const characterWithFruitSelect = {
id: character.id,
name: character.name,
frName: character.frName,
translatedName: character.translatedName,
frTranslatedName: character.frTranslatedName,
devilFruitId: character.devilFruitId,
devilFruitName: devilFruit.name,
devilFruitType: devilFruit.type,
+2
View File
@@ -30,6 +30,8 @@ export type Arc = InferSelectModel<typeof arc>;
export const devilFruit = sqliteTable('devil_fruit', {
id: text('id').primaryKey(),
name: text('name').notNull().unique(),
translatedName: text('translated_name'),
frTranslatedName: text('fr_translated_name'),
type: text('type').$type<DevilFruitType>(),
url: text('url')
});