# Feature DREAM-258 - Primer Alpha::ToggleSwitch locale support

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-258

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Frontend components and Primer design system |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Behrokh Satarnejad |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an any user  
**I want to** see primer toggle switch  
**so that** it's shown in chosen locale

**Acceptance criteria**

<img class="image_resized op-uc-image op-uc-image_inline" style="width:90px;" src="/api/v3/attachments/407018/content">

status string is using locale defined values.

**Technical notes**

Both values are hardcoded [here.](https://github.com/opf/primer_view_components/blob/main/app/components/primer/alpha/toggle_switch.html.erb#L7)

**Translation considerations**

  - Add two records to locale definitions as we don't have any. 'label\_switch.on' and 'label\_switch.off' or smth like that.

  - Pass locale via ToggleSwitch's initializer
