File tree Expand file tree Collapse file tree 3 files changed +27
-25
lines changed Expand file tree Collapse file tree 3 files changed +27
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# @obosbbl/format
22
3+ ## 0.3.0
4+
5+ ### Minor Changes
6+
7+ - a92336d: add default entrypoint for formatting functions.
8+
9+ This makes it easier to support both Norwegian and Swedish formatting in the same project,
10+ but it requires you to specify the wanted locale as an options argument to the method.
11+
12+ Example:
13+
14+ ``` js
15+ // Combined 🇳🇴🇸🇪 example
16+ import { formatOrganizationNumber } from " @obosbbl/format" ;
17+ formatOrganizationNumber (" 000000000" , { locale: " no" }); // => '000 000 000'
18+ formatOrganizationNumber (" 0000000000" , { locale: " se" }); // => '000000-0000'
19+
20+ // 🇳🇴 only example
21+ import { formatOrganizationNumber } from " @obosbbl/format/no" ;
22+ formatOrganizationNumber (" 000000000" ); // => '000 000 000'
23+
24+ // 🇸🇪 only example
25+ import { formatOrganizationNumber } from " @obosbbl/format/se" ;
26+ formatOrganizationNumber (" 0000000000" ); // => '000000-0000'
27+ ```
28+
329## 0.2.0
430
531### Minor Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @obosbbl/format" ,
3- "version" : " 0.2 .0" ,
3+ "version" : " 0.3 .0" ,
44 "description" : " A collection of formatting methods for OBOS" ,
55 "repository" : {
66 "url" : " https://github.com/code-obos/public-frontend-modules"
You can’t perform that action at this time.
0 commit comments