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

Internationalization support #648

Open
pepicrft opened this issue Jun 26, 2023 · 4 comments
Open

Internationalization support #648

pepicrft opened this issue Jun 26, 2023 · 4 comments
Labels
needs forum discussion Needs to be discussed in the Swift Forums new feature New features or new functionality

Comments

@pepicrft
Copy link

Feature Name

Internationalization support

Description

It'd be great if Swift DocC supported internationalization like other documentation-generation tools do:

Swift DocC can establish a convention of how Markdown pages in multiple languages are structured in the file-system, generate an HTML page per language so that they can be indexed by search engines, and add a language switcher so that developers can easily switch between languages.

Motivation

While it's not common for API documentation to be translated, it's common to see documentation in longer form like tutorials to be translated for audiences that are not comfortable working in English. By supporting this feature we'd motivate Swift Package developers to translate their documentation removing language barriers from their packages.

Importance

It makes packages' documentation more accessible by eliminating language barriers.

Alternatives Considered

The alternatives that I considered are using the aforementioned documentation generators, but I'd like to use Swift DocC so that it's more tightly integrated into developers' workflows and tools.

@pepicrft pepicrft added the enhancement Improvements or enhancements to existing functionality label Jun 26, 2023
@d-ronnqvist d-ronnqvist added new feature New features or new functionality needs forum discussion Needs to be discussed in the Swift Forums and removed enhancement Improvements or enhancements to existing functionality labels Dec 21, 2023
@d-ronnqvist
Copy link
Contributor

This is a pretty big feature with a lot of open questions about its potential design and authoring experience.

@pepicrft
Copy link
Author

@d-ronnqvist is there a process to kick off those discussions. I'd be happy to take the lead there is external contributions are allowed. We are a happy user of Swift DocC and would love to see this need being addressed.

@d-ronnqvist
Copy link
Contributor

There isn't really a formal process for this but a good first step would be to start a thread in the Swift Forums with the goal of uncovering different use cases and workflows. The initial post doesn't have to be long or complicated. It mainly needs to contain a brief (maybe single paragraph) introduction of the topic, some examples of the type of content that you are looking to translate, and a call to action for other people to chime in with examples of the type of content that they would be interested in translating.

The goal at this point is to gather information to know what questions to ask and what specific problems we're looking to solve. In addition to what content people are looking to translate, it'd also be good to try and get some sense of people's translation workflows to learn more about what DocC needs to offer as a tool to fit in well with these workflows.

Once that forums thread has gathered a good list of use cases and workflows it's time to shift the conversation towards defining problems to be solves and proposing a high level design to solve them. Depending on how long the tread has gotten it may be better to start a new thread and summarize the conclusions from the previous thread to make it easier for new people to join that discussion if they weren't also part of the use cases discussion.

@pepicrft
Copy link
Author

Thanks a lot @d-ronnqvist for the detailed response. I'll start a discussion on Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs forum discussion Needs to be discussed in the Swift Forums new feature New features or new functionality
Projects
None yet
Development

No branches or pull requests

2 participants