Skip to content

Add French translations - #7010

Merged
laurmaedje merged 1 commit into
typst:mainfrom
MDLC01:french-translation
Oct 7, 2025
Merged

laurmaedje merged 1 commit into
typst:mainfrom
MDLC01:french-translation

Conversation

@MDLC01

@MDLC01 MDLC01 commented Oct 3, 2025

Copy link
Copy Markdown
Collaborator

This adds some French translations.

The actual French word for "email" would be "courriel" or "mél" but I don't think anyone uses those words in the real world.

Also, depending on where those translations are used, it might be better to use "Adresse mail" ("E-mail address") and "Numéro de téléphone" ("Phone number").

Comment thread crates/typst-library/translations/fr.txt Outdated
@reknih

reknih commented Oct 3, 2025

Copy link
Copy Markdown
Member

The translations are used in tooltips for tel: and mailto: links in PDF (i.e. #link("tel:+1234567890")[Give me a call] would result in the tooltip Phone number +1234567890 for the link

@MDLC01

MDLC01 commented Oct 3, 2025

Copy link
Copy Markdown
Collaborator Author

But the English translation for telephone is "Telephone", not "Phone number", which confuses me.

@MDLC01
MDLC01 force-pushed the french-translation branch from 8d26ef2 to 0fdee02 Compare October 3, 2025 20:53
@Fevol Fevol mentioned this pull request Oct 5, 2025
@reknih

reknih commented Oct 6, 2025

Copy link
Copy Markdown
Member

The code works as follows:

// Contents of the tooltip for the link
let contact = url.strip_contact_scheme().map(|(scheme, stripped)| {
    // Will result in `<phone number LocalName> +123456789` in the tooltip for
    // something like `#link("tel:+123456789")`
    eco_format!("{} {stripped}", scheme.local_name_in(styles))
});

This is the only use for the telephone and email LocalNames. Hence, their translation should work in that use case. We'll change the English translation accordingly. We decided that the names work as-is.

@MDLC01

MDLC01 commented Oct 6, 2025

Copy link
Copy Markdown
Collaborator Author

Then this can be merged as is

@laurmaedje
laurmaedje added this pull request to the merge queue Oct 7, 2025
@laurmaedje

Copy link
Copy Markdown
Member

Thanks!

Merged via the queue into typst:main with commit 7794d5c Oct 7, 2025
8 checks passed
@MDLC01
MDLC01 deleted the french-translation branch October 7, 2025 10:32
@Krasjet

Krasjet commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

hmm, "courriel" is definitely used almost everywhere in Québec. For example,

courriel in gov website

It is a government website.

We probably need a separate fr-CA?

@MDLC01

MDLC01 commented Oct 10, 2025

Copy link
Copy Markdown
Collaborator Author

We probably need a separate fr-CA?

Yes

Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
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.

5 participants