Automattic / Automattic/babble

Print's both current language content and the translated content in the same page

Open
#349 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

It seems that babble plugin does not provides a function to print the translated content.
I'm working in a site that I need to print both the current language content and the translated content, and I still can't figure out how to do this using Babble plugin.

It would be very useful, for example, if in additionally to 'the_content()' function, I have a 'the_content_translated( 'pt_BR' )' to renders my content translated to Brazilian portuguese.

Thanks in advance! If I can help to develop this feature, where I can look for to start?

Contributor guide

Open the contributing guide

Research direction

Start by tracing the plugin's existing handling of the_content and how it selects translated content. Check how a requested locale such as pt_BR is represented, then define the completed behavior as rendering both the current-language content and the requested translation on the same page.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content, localization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.