MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / getLanguage

Function getLanguage

src/utils/utils.js:1–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export const getLanguage = key => {
2 const languages = {
3 code: 'jsx',
4 usage: 'jsx',
5 tailwind: 'jsx',
6 presets: 'jsx',
7 utility: 'jsx',
8 installation: 'bash',
9 css: 'css'
10 };
11
12 return languages[key];
13};
14
15const formatNumber = num => {
16 if (num < 1000) return num.toString();

Callers 1

CodeExampleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected