Problem with switch statement in language picker - [Solved] I made a language picker, it works in one language but not in other. I want to get the current page of other locale. 

{% set locale = craft.i18n.getCurrentLocale() %}

 {% switch locale %}

  {% case 'en_us' %}
   &lt;a href="{{ craft.entries.id(entry.id).locale('de').first().url }}"&gt;Deutsch
  {% case 'de' %}
   &lt;a href="{{ craft.entries.id(entry.id).locale('en_us').first().url}}"&gt;English

 {% endswitch %}


Works in first case but not the second. What am i doing wrong?

Update: I forget to update the locale template in other language. Problem is solved, my mistake.
I forget to update locale template code with the same switch statement. Now problem solved.