Skip to content

Admonition translation issues. #328

@ShimYama

Description

@ShimYama

Hello everyone. Thanks a lot for working on this project!
This project makes it easier for me to write documentation in both English and Japanese.

I found that admonition translation does not work correctly when an admonition is nested.
Also, while admonitions are not case-sensitive, their translations are case-sensitive.

Example

(truncated for only necessary parts)

plugins:
  - i18n:
      docs_structure: folder
      languages:
        - locale: ja
          name: 日本語
          build: true
          default: true
          admonition_translations:
            note: 補足
        - locale: en
          name: English
          build: true
          default: false
!!! note
    This admonition title is translated.

!!! Note
    This admonition title is not translated.

1. some instruction here

    !!! note
        This admonition title is not translated.

Result

Image

Related pages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions