[CONTEDIT-392] POC i18n Stories App Created: 21/Jul/21  Updated: 13/Aug/21  Resolved: 10/Aug/21

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Neutral
Reporter: Laura Delnevo Assignee: Dai Ha
Resolution: Done Votes: 0
Labels: VN-Analysis, VN-Implementation
Remaining Estimate: 0d
Time Spent: 3d 2.75h
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-08-09 at 11.40.20.png     PNG File propose-2-new-actions.png     PNG File warning.png    
Issue Links:
Relates
relates to CONTEDIT-405 Wish-list: Handle i18n config in one ... Closed
relates to CONTEDIT-406 Wish-list: Check after duplicate cont... Closed
dependency
is depended upon by CONTEDIT-411 Handle i18n in MultiJcrBlockDefinition Closed
relation
is related to CONTEDIT-402 Handle i18n in MultiBlock Closed
is related to CONTEDIT-403 Verify and update collapsible composi... Closed
is related to CONTEDIT-404 Make content editor form presenter be... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: i18n Stories App
Sprint: Content Mngmt 09, Content Mngmt 10
Story Points: 8

 Description   

Scope of POC 

  • i18n of Stories App work at Master (top) level 
  • Ability to copy Stories to a new language
  • Ability to edit the content of a Story at the language level
    • Ability to edit the structure of a Story at the language level

 

Out of scope for POC

  • REST APIs are Headless compatible
  • Detection of author's locale or remember-last
  • Templating functions for freemarker


 Comments   
Comment by Oanh Thai Hoang [ 09/Aug/21 ]

Output code branch: https://git.magnolia-cms.com/projects/ENTERPRISE/repos/content-editor/pull-requests?create&sourceBranch=refs%2Fheads%2Fpoc&targetRepoId=1880

 

How to run:

Flow:

  • Open stories app
  • User create new story. See 
  • User fill in all data for en locale
  • Clicking to locale selector combobox, user will receive warning that must save current before switching. See 
  • User click to step 1 save current locale
  • User click to step 2: clone content to duplicate en content to all available locales
  • Clicking to locale selector combobox choose "de"
  • See all data have been cloned
  • Now user can change and click save

 

 

Comment by Oanh Thai Hoang [ 09/Aug/21 ]

If wanna render i18n for story template page. You can change a bit in your /travel-demo-stories-app/templates/components/storiesLead.ftl

to wrapper story node to support i18n. See line 8-9

Generated at Mon Feb 12 00:19:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.