Considerations
Fixtures
- Collection
- Manifests w/ multiple internationalized label/value
- Textual annotations (commenting/tagging) multiple lang?
- Supplementing annotations (VTTs) multiple lang?
A default locale/lang
Should there be any assumed default? Currently our <html> element has a lang="en" attribute.
- Con: assumptive and potentially exclusive
- Pro:
en is the default template -- unless we can figure out how to not make it so
Would it be better to not state lang at all unless we it is stated?
Customizing Content
/content/** → Default lang
/content/en/** → Alternate lang(s)
And then in config canopy.yml
locales:
- lang: pt
label: Português
default: true
- lang: en
label: English
Customizing UI language strings
Certain UI elements may need to be updated for defined languages
A locale config:
content/locale.yml
search: Pesquisar
filter: Filtrar
# more...
content/en/locale.yml
search: Search
filter: Filter
# more...
Customizing navigation per language code
This may be difficult as we need to consider how language relative routes can be defined for /search results page. and /works.
A locale config:
content/navigation.yml
navigation:
- href: /obras
label: Obras
- href: /sobre
label: Sobre
# more...
content/en/navigation.yml
navigation:
- href: /en/search
label: Works
- href: /en/about
label: About
# more...
Considerations
canopy.ymlcontent/directory pages to for multiple language versionslabel/valueproperties to screenFixtures
label,metadata, etc..A default locale/lang
Should there be any assumed default? Currently our
<html>element has alang="en"attribute.enis the default template -- unless we can figure out how to not make it soWould it be better to not state
langat all unless we it is stated?Customizing Content
/content/**→ Default lang/content/en/**→ Alternate lang(s)And then in config canopy.yml
Customizing UI language strings
Certain UI elements may need to be updated for defined languages
A locale config:
content/locale.yml
content/en/locale.yml
Customizing navigation per language code
This may be difficult as we need to consider how language relative routes can be defined for
/searchresults page. and/works.A locale config:
content/navigation.yml
content/en/navigation.yml