From e3e61b057783a5cd46fe36a9a48d85b2163c6898 Mon Sep 17 00:00:00 2001 From: Eric Cheng Date: Mon, 26 Sep 2022 05:07:00 -0400 Subject: [PATCH] feat(science): add more units in en locale (#1386) --- src/locales/en/science/unit.ts | 28 +++++++++++++++++++++++++ test/__snapshots__/science.spec.ts.snap | 12 +++++------ 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/locales/en/science/unit.ts b/src/locales/en/science/unit.ts index 7390c983d33..005735e9a13 100644 --- a/src/locales/en/science/unit.ts +++ b/src/locales/en/science/unit.ts @@ -87,4 +87,32 @@ export default Object.freeze([ name: 'sievert', symbol: 'Sv', }, + { + name: 'steradian', + symbol: 'sr', + }, + { + name: 'farad', + symbol: 'F', + }, + { + name: 'siemens', + symbol: 'S', + }, + { + name: 'weber', + symbol: 'Wb', + }, + { + name: 'henry', + symbol: 'H', + }, + { + name: 'lux', + symbol: 'lx', + }, + { + name: 'katal', + symbol: 'kat', + }, ]); diff --git a/test/__snapshots__/science.spec.ts.snap b/test/__snapshots__/science.spec.ts.snap index b8350a247f5..a8fb5126b14 100644 --- a/test/__snapshots__/science.spec.ts.snap +++ b/test/__snapshots__/science.spec.ts.snap @@ -10,8 +10,8 @@ exports[`science > 42 > chemicalElement 1`] = ` exports[`science > 42 > unit 1`] = ` { - "name": "hertz", - "symbol": "Hz", + "name": "pascal", + "symbol": "Pa", } `; @@ -25,8 +25,8 @@ exports[`science > 1211 > chemicalElement 1`] = ` exports[`science > 1211 > unit 1`] = ` { - "name": "gray", - "symbol": "Gy", + "name": "henry", + "symbol": "H", } `; @@ -40,7 +40,7 @@ exports[`science > 1337 > chemicalElement 1`] = ` exports[`science > 1337 > unit 1`] = ` { - "name": "candela", - "symbol": "cd", + "name": "radian", + "symbol": "rad", } `;