Hackers' Pub Update: LLM-based Article Translation Feature

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

An LLM-based article translation feature has been added. First, to allow your articles to be translated using LLM, you need to enable the "Allow LLM-powered automatic translation" option in the article publication settings. This option is turned off for all existing articles, but it is enabled by default for newly written articles.

The 'Allow LLM-powered automatic translation' option added to the Korean version of the article publication settings page
The "Allow LLM-powered automatic translation" option added to the Korean version of the article publication settings page
The 'Allow LLM-powered automatic translation' option added to the English version of the article publication settings page
The "Allow LLM-powered automatic translation" option added to the English version of the article publication settings page

For articles with this option enabled, a "Read in other languages" menu will be displayed at the top as shown below. The list of languages shown in this menu can be set in the language settings.

The 'Read in other languages' menu displayed at the beginning of the article (Korean version)
The "Read in other languages" menu displayed at the beginning of the article (Korean version)
The 'Read in other languages' menu displayed at the beginning of the article (English version)
The "Read in other languages" menu displayed at the beginning of the article (English version)

Languages that have already been translated will be displayed immediately, but for languages that have not yet been translated, a message will appear asking you to wait, as shown below. Translation time varies depending on the length of the article, ranging from as short as 30 seconds to as long as 5 minutes.

Message indicating that the article is being translated (Korean version): 'This article is being translated from English to Korean. Please wait until the translation is complete.'
Message indicating that the article is being translated (Korean version): "This article is being translated from English to Korean. Please wait until the translation is complete."
Message indicating that the article is being translated (English version): 'This article is being translated from Korean to English. Please wait until the translation is complete.'
Message indicating that the article is being translated (English version): "This article is being translated from Korean to English. Please wait until the translation is complete."

Once the translation is complete, the message will change as follows:

Message displayed at the top of the translated article (Korean version): 'This article has been translated from English to Korean.'
Message displayed at the top of the translated article (Korean version): "This article has been translated from English to Korean."
Message displayed at the top of the translated article (English version): 'This article has been translated from Korean to English.'
Message displayed at the top of the translated article (English version): "This article has been translated from Korean to English."

The translation feature was something I had considered as a core functionality since I first conceptualized Hackers' Pub. This is because I've long felt the unfairness that software programmers must learn English to grow beyond a certain level, and the disappointment that most foreigners cannot access various materials written in non-English languages such as Japanese or Chinese. Fortunately, the translation quality of LLMs has improved significantly recently, allowing even small websites like Hackers' Pub to implement fairly good quality translation features.

For reference, the model currently used for translation is Claude Sonnet 3.7. It's not exactly an inexpensive model, but I'm running it as a pilot and considering switching to other models like Gemini 2.5 Flash if the cost becomes too burdensome.

In any case, I hope many people will find this newly added translation feature useful.

Below are sample translations I've prepared in advance:

6

No comments

If you have a fediverse account, you can comment on this article from your own instance. Search https://hackers.pub/ap/articles/01969504-4aea-7200-a1ae-824b4f62ea7a on your instance and reply to it.