Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use language value in templating metadata instead of trying to match #668

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

rowanseymour
Copy link
Member

This gets rid of trying to match one of our language codes to a known whatsapp language code

SendPrep: setSendURL,
},
{
Label: "Template Country Language",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

language is now just used as it is so don't need a separate test for en vs en_US etc

SendPrep: setSendURL,
},
{
Label: "Template Invalid Language",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't happen


import "github.com/nyaruka/gocommon/i18n"

func GetText(text string, locale i18n.Locale) string {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

figured might as well make this a generic translation thing

Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f58fa2a) 74.39% compared to head (f7056ae) 74.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #668      +/-   ##
==========================================
- Coverage   74.39%   74.38%   -0.01%     
==========================================
  Files          97       97              
  Lines       13087    13082       -5     
==========================================
- Hits         9736     9731       -5     
  Misses       2662     2662              
  Partials      689      689              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour merged commit 85717bb into main Dec 6, 2023
9 checks passed
@rowanseymour rowanseymour deleted the use_template_language branch December 6, 2023 15:59
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants