Skip to content

Conversation

@rntluca
Copy link

@rntluca rntluca commented Jan 10, 2026

This PR aims to start translating the documentation into Italian. For now, I have translated the first five "articles" and plan to gradually translate the rest as I'm able.

I've tried to understand how the translation mechanism works; this is my first contribution. Please let me know if anything needs to be modified.

},
lastUpdated: {
text: 'Aggiornato il',
formatOptions: {
Copy link
Member

Choose a reason for hiding this comment

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

Try to move format options to "root / themeConfig" section.

Copy link
Author

Choose a reason for hiding this comment

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

I tried it, but unfortunately putting it in the root section as suggested does not seem to have any effect.

If I place the lastUpdate at the root, the text for the Italian locale, is this:

Aggiornato il: 1/6/26, 9:06 PM

If I place the format option inside the Italian locale the result is:

Aggiornato il: 06/01/26, 21:06

I tried several combinations while trying to decipher the VitePress documentation, and the only sensible thing I could think of was to extract the reusable configuration for formatting options into a variable at the beginning of the file.

I welcome any alternative suggestions.

Copy link
Member

Choose a reason for hiding this comment

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

May be move it to "themeConfig" in top level?

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