[DOCU-2297] Documentation for i18n API Created: 30/Nov/21  Updated: 29/Mar/22  Resolved: 06/Dec/21

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Nicole L Assignee: Martin Drápela
Resolution: Done Votes: 0
Labels: external
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation page URL: https://docs.magnolia-cms.com/product-docs/6.2/Administration/Language/i18n-API.html
Reporter Name: Nicole
Email: nlovas@ualberta.ca

 Description   

Hello.

On the page "i18n API" I was expecting more guidance on how to use the i18n API. Or at least a mention of its limits as I have been pulling my hair out trying to google how to write common localization with it.

Example 1: Pluralization:
"No Blogs | One Blog | {num} Blogs"

Example 2: Named Formatting:
"Page {num} of {total}"

As it stands I have not found any documentation on whether or not these are possible, so I'm assuming they're not. My suggestion is to add this functionality or at least make a note somewhere in the guide that this functionality is unavailable. 
If you choose to implement these features, here's a fantastic example of documentation of this sort of thing: Vue i18n



 Comments   
Comment by Richard Gange [ 01/Dec/21 ]

Hello Nicole-

Maybe this is what you are looking for https://docs.magnolia-cms.com/product-docs/6.2/Templating/Template-scripts/Rendering-context-objects.html#_i18n ?

If you are a customer or partner we can move this conversation to our support channel. Otherwise you might also look for help in our Google group users list

HTH
Rich

Generated at Mon Feb 12 01:25:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.