DoSomething Global Product Info - DoSomethingArchive/legacy-website GitHub Wiki
Roles
Global has two specific roles that relate to it, regional roles (Brazil, Mexico) and Global admin. Regional roles are limited to editing content that is translatable in their language. Global admins are reserved for those overseeing global content. _dosomething_global_get_regional_roles
and dosomething_global_is_regional_admin
can provide information on whether the user is a regional role.
Supported languages & abbreviations
All of these can be found in the dosomething global strongarm.
Language name | Abbreviation |
---|---|
Portuguese, Brazil | pt-br |
Spanish, Mexico | es-mx |
English | en |
English, Global | en-global |
Flows
Anonymous user, accessing content
- Request a bare URL (e.g., /campaigns/test) from a supported country (e.g., BR) where the node has a translated, published version. You should get redirected.
- Request a bare URL (e.g., /campaigns/test) from a supported country (e.g., BR) where the node has a translated, unpublished version. You should not get redirected.
- Request a bare URL (e.g., /campaigns/test) from an unsupported country (e.g., IN). You should not get redirected.
Anonymous user, signing up
- If user is in supported country (EG: BR, MX, US), set their country to that country and change their language to the matching language.
- If user is in non supported country (EG: IN), set their country to that country and change their language to global-en
- If user has no fastly headers, default their language to EN.