Skip to content

Commit cbb10df

Browse files
authored
Merge pull request #321 from digital-gov-mg/fix/specific-wording
fix: vers taona - irayora
2 parents 0cb84b7 + 5f915a0 commit cbb10df

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

public/helpers.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ function fatherDetails(fatherPrimaryDistrict) {
401401
// 'rainy,',
402402
'teraka tamin’ny',
403403
this.birthFatherCustomizedExactDateOfBirthUnknown
404-
? convertNumberToLetterForMalagasySpecificLanguage(
404+
? 'taona ' +
405+
convertNumberToLetterForMalagasySpecificLanguage(
405406
parseInt(this.birthFatherYearOfBirth)
406407
)
407408
: customizeDateInCertificateContent(this.fatherBirthDate),
@@ -517,7 +518,8 @@ function fatherDetailsSimplified(fatherDetailsContext) {
517518
// 'rainy,',
518519
'teraka tamin’ny',
519520
birthFatherCustomizedExactDateOfBirthUnknown
520-
? convertNumberToLetterForMalagasySpecificLanguage(
521+
? 'taona ' +
522+
convertNumberToLetterForMalagasySpecificLanguage(
521523
parseInt(birthFatherYearOfBirth)
522524
)
523525
: customizeDateInCertificateContent(fatherBirthDate),
@@ -602,9 +604,10 @@ function motherDetailsSimplified(motherDetailsContext) {
602604
__spreadArray(
603605
[
604606
joinValuesWith([motherFamilyName, motherFirstName]) + ',',
605-
"teraka tamin'ny",
607+
"teraka taminny",
606608
birthMotherCustomizedExactDateOfBirthUnknown
607-
? convertNumberToLetterForMalagasySpecificLanguage(
609+
? 'taona ' +
610+
convertNumberToLetterForMalagasySpecificLanguage(
608611
parseInt(birthMotherYearOfBirth)
609612
)
610613
: customizeDateInCertificateContent(motherBirthDate),
@@ -653,9 +656,10 @@ function motherDetails(motherPrimaryDistrict) {
653656
[
654657
joinValuesWith([this.motherFamilyName, this.motherFirstName]) + ',',
655658
// 'reniny,',
656-
"teraka tamin'ny",
659+
"teraka taminny",
657660
this.birthMotherCustomizedExactDateOfBirthUnknown
658-
? convertNumberToLetterForMalagasySpecificLanguage(
661+
? 'taona ' +
662+
convertNumberToLetterForMalagasySpecificLanguage(
659663
parseInt(this.birthMotherYearOfBirth)
660664
)
661665
: customizeDateInCertificateContent(this.motherBirthDate),
@@ -860,9 +864,10 @@ function registrationStatementSimplified(registrationStatementContext) {
860864
: __spreadArray(
861865
__spreadArray(
862866
[
863-
"teraka tamin'ny",
867+
"teraka taminny",
864868
birthInformantCustomizedExactDateOfBirthUnknown
865-
? convertNumberToLetterForMalagasySpecificLanguage(
869+
? 'taona ' +
870+
convertNumberToLetterForMalagasySpecificLanguage(
866871
parseInt(birthInformantYearOfBirth)
867872
)
868873
: customizeDateInCertificateContent(informantBirthDate),
@@ -962,9 +967,10 @@ function registrationStatement() {
962967
: __spreadArray(
963968
__spreadArray(
964969
[
965-
"teraka tamin'ny",
970+
"teraka taminny",
966971
this.birthInformantCustomizedExactDateOfBirthUnknown
967-
? convertNumberToLetterForMalagasySpecificLanguage(
972+
? 'taona ' +
973+
convertNumberToLetterForMalagasySpecificLanguage(
968974
parseInt(this.birthInformantYearOfBirth)
969975
)
970976
: customizeDateInCertificateContent(
@@ -1214,7 +1220,7 @@ function convertTimeToMdgCustomWords(timeString) {
12141220
convertNumberToLetterForMalagasySpecificLanguage(newMinute),
12151221
' '
12161222
)
1217-
: 'ora'
1223+
: ' ora'
12181224
)
12191225
.concat(newMinute > 0 ? 'minitra ' : '', ' ')
12201226
.concat(timePeriod)

src/form/common/certificate/handlebars/helpers.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@ export function eventStatement(): Handlebars.HelperDelegate {
236236
this.birthChildFokontanyCustomAddress
237237
?.toLowerCase()
238238
.includes('toamasina') ||
239-
this.placeOfBirthFacility?.toLowerCase().includes('toamasina') ||
240-
this.birthChildFokontanyCustomAddress
241-
?.toLowerCase()
242-
.includes('toamasina')
239+
this.placeOfBirthFacility?.toLowerCase().includes('toamasina')
243240
? ''
244241
: 'kaominina' +
245242
' ' +
@@ -304,7 +301,8 @@ function fatherDetails(
304301
// 'rainy,',
305302
'teraka tamin’ny',
306303
this.birthFatherCustomizedExactDateOfBirthUnknown
307-
? convertNumberToLetterForMalagasySpecificLanguage(
304+
? 'taona ' +
305+
convertNumberToLetterForMalagasySpecificLanguage(
308306
parseInt(this.birthFatherYearOfBirth)
309307
)
310308
: customizeDateInCertificateContent(this.fatherBirthDate),
@@ -360,9 +358,10 @@ function motherDetails(
360358
return joinValuesWith([
361359
joinValuesWith([this.motherFamilyName, this.motherFirstName]) + ',',
362360
// 'reniny,',
363-
"teraka tamin'ny",
361+
'teraka tamin’ny',
364362
this.birthMotherCustomizedExactDateOfBirthUnknown
365-
? convertNumberToLetterForMalagasySpecificLanguage(
363+
? 'taona ' +
364+
convertNumberToLetterForMalagasySpecificLanguage(
366365
parseInt(this.birthMotherYearOfBirth)
367366
)
368367
: customizeDateInCertificateContent(this.motherBirthDate),
@@ -487,9 +486,10 @@ export function registrationStatement(): Handlebars.HelperDelegate {
487486
...(isInformantMotherOrFather(this)
488487
? []
489488
: [
490-
"teraka tamin'ny",
489+
'teraka tamin’ny',
491490
this.birthInformantCustomizedExactDateOfBirthUnknown
492-
? convertNumberToLetterForMalagasySpecificLanguage(
491+
? 'taona ' +
492+
convertNumberToLetterForMalagasySpecificLanguage(
493493
parseInt(this.birthInformantYearOfBirth)
494494
)
495495
: customizeDateInCertificateContent(this.informantBirthDate),
@@ -709,7 +709,7 @@ function convertTimeToMdgCustomWords(timeString: string) {
709709
? ` ora sy ${convertNumberToLetterForMalagasySpecificLanguage(
710710
newMinute
711711
)} `
712-
: 'ora'
712+
: ' ora'
713713
}${newMinute > 0 ? `minitra ` : ''} ${timePeriod}`
714714

715715
return res

0 commit comments

Comments
 (0)