Skip to content

Commit dd0a164

Browse files
committed
feat: add english operator name
1 parent 240f8d6 commit dd0a164

File tree

4 files changed

+6272
-5939
lines changed

4 files changed

+6272
-5939
lines changed

scripts/shared.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export async function getOperatorNames() {
4848
{
4949
id: el,
5050
...transformOperatorName(op.name),
51+
alt_name: op.appellation,
5152
},
5253
]
5354
}),

src/components/OperatorSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const OperatorSelect: FC<OperatorSelectProps> = ({
3838
const fuse = useMemo(
3939
() =>
4040
new Fuse(OPERATORS, {
41-
keys: ['name', 'pron'],
41+
keys: ['name', 'pron', 'alt_name'],
4242
threshold: 0.3,
4343
}),
4444
[],

0 commit comments

Comments
 (0)