Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(add): i18n challenge | en #14

Closed
QIN2DIM opened this issue Mar 8, 2022 · 0 comments
Closed

feat(add): i18n challenge | en #14

QIN2DIM opened this issue Mar 8, 2022 · 0 comments
Labels
fixed BUG 已修复或问题已解决 i18n

Comments

@QIN2DIM
Copy link
Owner

QIN2DIM commented Mar 8, 2022

Last modified time

2022-03-08 06:30

Prompt message

<!--truck-->
Please click each image containing a truck
<!--boat-->
Please click each image containing a boat
<!--bicycle-->
Please click each image containing a bicycle
<!--train-->
Please click each image containing a train
<!--seaplane-->
Please click each image containing a seaplane
<!--aeroplane-->
Please click each image containing an airplane
<!--bus-->
Please click each image containing a motorbus
<!--motorbike-->
Please click each image containing a motorcycle
<!--vertical river-->
Please click each image containing a vertical river
<!--airplane in the sky flying left-->
Please click each image containing an airplane in the sky flying left

Label alias

label_alias = {
    "airplane": "aeroplane",
    "аirplane": "aeroplane",
    "motorbus": "bus",
    "mοtorbus": "bus",
    "truck": "truck",
    "truсk": "truck",
    "motorcycle": "motorbike",
    "boat": "boat",
    "bicycle": "bicycle",
    "train": "train",
    "vertical river": "vertical river",
    "airplane in the sky flying left": "airplane in the sky flying left",
}

Split function

labels_mirror = {
    "en": re.split(r"containing a", label_obj.text)[-1][1:].strip(),
}
label = labels_mirror[langName]
@QIN2DIM QIN2DIM added i18n fixed BUG 已修复或问题已解决 labels Mar 8, 2022
@QIN2DIM QIN2DIM changed the title feat(pending): i18n challenge | en feat(add): i18n challenge | en Mar 9, 2022
@QIN2DIM QIN2DIM closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed BUG 已修复或问题已解决 i18n
Projects
None yet
Development

No branches or pull requests

1 participant