allowed display for english only if no welsh
This commit is contained in:
@@ -22,7 +22,11 @@ const Pinswg_dnsid = (props) => {
|
|||||||
</h2>
|
</h2>
|
||||||
<p className="govuk-body">
|
<p className="govuk-body">
|
||||||
{detailsObj.pinswg_projectdescription != null
|
{detailsObj.pinswg_projectdescription != null
|
||||||
? router.locale == "cy"
|
? detailsObj.pinswg_projectdescription.indexOf(
|
||||||
|
";"
|
||||||
|
) < 0
|
||||||
|
? detailsObj.pinswg_projectdescription
|
||||||
|
: router.locale == "cy"
|
||||||
? detailsObj.pinswg_projectdescription.split(
|
? detailsObj.pinswg_projectdescription.split(
|
||||||
";"
|
";"
|
||||||
)[1]
|
)[1]
|
||||||
@@ -34,7 +38,11 @@ const Pinswg_dnsid = (props) => {
|
|||||||
|
|
||||||
<p className="govuk-body">
|
<p className="govuk-body">
|
||||||
{detailsObj.pinswg_projectlocation != null
|
{detailsObj.pinswg_projectlocation != null
|
||||||
? router.locale == "cy"
|
? detailsObj.pinswg_projectlocation.indexOf(
|
||||||
|
";"
|
||||||
|
) < 0
|
||||||
|
? detailsObj.pinswg_projectlocation
|
||||||
|
: router.locale == "cy"
|
||||||
? detailsObj.pinswg_projectlocation.split(
|
? detailsObj.pinswg_projectlocation.split(
|
||||||
";"
|
";"
|
||||||
)[1]
|
)[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user