forked from notablegrowth/braze-liquid
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcase-when.html
58 lines (49 loc) · 1.44 KB
/
case-when.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% comment %}Switch statement to display copy based on a specific language. The switch capture as it makes it easier to strip any extra space that might be captured.{% endcomment %}
{% assign language = {{${language}}} %}
{% capture copy %}
{% case language %}
{% when "es" %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plume se ha conectado a Internet
{% else %}
La red está desconectada
{% endif %}
{% when "fr" %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plume vient de se reconnecter à Internet
{% else %}
Le réseau est hors ligne
{% endif %}
{% when "de" %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plume hat sich gerade wieder mit dem Internet verbunden
{% else %}
Netzwerk ist offline
{% endif %}
{% when "it" %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plume si è appena ricollegato ad internet
{% else %}
La rete è offline
{% endif %}
{% when "pt" %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plume si è appena ricollegato ad internet
{% else %}
La rete è offline
{% endif %}
{% when "ja" %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plumeはインターネットに再接続しました
{% else %}
ネットワーク
{% endif %}
{% else %}
{% if {{api_trigger_properties.${type}}} == "networkOnline" %}
Plume just re-connected to the Internet
{% else %}
Network is Offline
{% endif %}
{% endcase %}
{% endcapture %}
{{copy}}