Update logic in Simorgh to convert Uzbek from single service to dual service
Code changes
Theme Provider
-- Update Uzbek to use Cyr and Lat themes.
Service Config:
-- Split Uzbek serviceConfig into variants. (Cyr, Lat, Default) - note comments mark where translations are required
Models/types/globals
-- Update Uzbek types to handle variants
Other
-- Check and update areas in codebase that directly reference variants on services and update them to include Uzbek
-- Add/ update relevant unit tests
-- Add fixture data for Uzbek article in cyr and lat variants. Updates STY fixture data so it loads
Out of scope of this ticket:
Variant Redirecting
-- Have not added logic here to redirect if you land on an article without a variant e.g. uzbek/articles/cxj3rjxm6r0o. We will look to remove/move our existing logic from Simorgh in a follow up ticket.
-- We have added some temporarily logic to the VariantHandler to prevent the homepage redirecting. This can be removed once the Uzbek Homepage defaults to /cyr
Secondary data fetch
-- Will need to do a follow up task to check when/ whether this is possible to do
Some other things to note post swarm
Secondary Data for Optimo Articles
-- topStories, features, mostRead and latestMedia are all coming through as null from the backend response so I have updated the fixture data to reflect this. (I think I had just copied over the original non-variant response, oops!)
E2E Tests
-- Have added but not enabled for Uzbek articles cyr/ lat due to missing secondary data
-- Have enabled for Uzbek STY pages locally. (Could do for more enviornments and page types if we think it necessary).
Testing
Pull down this PR and run simorgh locally using yarn dev
Resolves JIRA WSTEAM1-953
Overall changes
Update logic in Simorgh to convert Uzbek from single service to dual service
Code changes
Out of scope of this ticket:
Some other things to note post swarm
Testing
yarn dev
Helpful Links
Add Links to useful resources related to this PR if applicable.
Coding Standards
Repository use guidelines