Skip to content

Conversation

@jebbaited
Copy link
Contributor

@jebbaited jebbaited changed the title add english translated character name if ukriainian one is exist add english translated character name if ukriainian one exists May 29, 2024
Copy link
Member

@kuyugama kuyugama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If person or character object does not have name_en field set, other languages field would contain invalid value

const otherLanguagesName =
name === character.name_en
? character.name_ja
: `${character.name_ja} / ${character.name_en}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there is no name_en in character object? It would be "{name_ja} / {''}"


const name = person.name_ua || person.name_en || person.name_native;
const otherLanguagesName =
name === person.name_en
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there is no name_en in person object? It would be "{name_native} / {''}"

@kuyugama kuyugama changed the title add english translated character name if ukriainian one exists add English translated character name if Ukrainian one exists May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants