fix(core): update
This commit is contained in:
commit
5c8898554a
66
.gitea/workflows/default_nottags.yaml
Normal file
66
.gitea/workflows/default_nottags.yaml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
name: Default (not tags)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags-ignore:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
|
||||||
|
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
||||||
|
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
||||||
|
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
||||||
|
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
security:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install pnpm and npmci
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
|
||||||
|
- name: Run npm prepare
|
||||||
|
run: npmci npm prepare
|
||||||
|
|
||||||
|
- name: Audit production dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --prod
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Audit development dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --dev
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
test:
|
||||||
|
if: ${{ always() }}
|
||||||
|
needs: security
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Test stable
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm test
|
||||||
|
|
||||||
|
- name: Test build
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm build
|
124
.gitea/workflows/default_tags.yaml
Normal file
124
.gitea/workflows/default_tags.yaml
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
name: Default (tags)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
|
||||||
|
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
||||||
|
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
||||||
|
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
||||||
|
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
security:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Audit production dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --prod
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Audit development dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --dev
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
test:
|
||||||
|
if: ${{ always() }}
|
||||||
|
needs: security
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Test stable
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm test
|
||||||
|
|
||||||
|
- name: Test build
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm build
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: test
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm publish
|
||||||
|
|
||||||
|
metadata:
|
||||||
|
needs: test
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Code quality
|
||||||
|
run: |
|
||||||
|
npmci command npm install -g typescript
|
||||||
|
npmci npm install
|
||||||
|
|
||||||
|
- name: Trigger
|
||||||
|
run: npmci trigger
|
||||||
|
|
||||||
|
- name: Build docs and upload artifacts
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
pnpm install -g @git.zone/tsdoc
|
||||||
|
npmci command tsdoc
|
||||||
|
continue-on-error: true
|
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.nogit/
|
||||||
|
|
||||||
|
# artifacts
|
||||||
|
coverage/
|
||||||
|
public/
|
||||||
|
pages/
|
||||||
|
|
||||||
|
# installs
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# caches
|
||||||
|
.yarn/
|
||||||
|
.cache/
|
||||||
|
.rpt2_cache
|
||||||
|
|
||||||
|
# builds
|
||||||
|
dist/
|
||||||
|
dist_*/
|
||||||
|
|
||||||
|
# custom
|
11
.vscode/launch.json
vendored
Normal file
11
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"command": "npm test",
|
||||||
|
"name": "Run npm test",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "node-terminal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"json.schemas": [
|
||||||
|
{
|
||||||
|
"fileMatch": ["/npmextra.json"],
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"npmci": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for npmci"
|
||||||
|
},
|
||||||
|
"gitzone": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for gitzone",
|
||||||
|
"properties": {
|
||||||
|
"projectType": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["website", "element", "service", "npm", "wcc"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
18
npmextra.json
Normal file
18
npmextra.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"gitzone": {
|
||||||
|
"projectType": "npm",
|
||||||
|
"module": {
|
||||||
|
"githost": "gitlab.com",
|
||||||
|
"gitscope": "push.rocks",
|
||||||
|
"gitrepo": "smarti18n",
|
||||||
|
"description": "a package dealing with i18n stuff",
|
||||||
|
"npmPackagename": "@push.rocks/smarti18n",
|
||||||
|
"license": "MIT",
|
||||||
|
"projectDomain": "push.rocks"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"npmci": {
|
||||||
|
"npmGlobalTools": [],
|
||||||
|
"npmAccessLevel": "public"
|
||||||
|
}
|
||||||
|
}
|
47
package.json
Normal file
47
package.json
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"name": "@push.rocks/smarti18n",
|
||||||
|
"version": "1.0.1",
|
||||||
|
"private": false,
|
||||||
|
"description": "a package dealing with i18n stuff",
|
||||||
|
"main": "dist_ts/index.js",
|
||||||
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
|
"author": "Task Venture Capital GmbH",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"test": "(tstest test/ --web)",
|
||||||
|
"build": "(tsbuild --web --allowimplicitany)",
|
||||||
|
"buildDocs": "(tsdoc)"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@git.zone/tsbuild": "^2.1.25",
|
||||||
|
"@git.zone/tsbundle": "^2.0.5",
|
||||||
|
"@git.zone/tsrun": "^1.2.46",
|
||||||
|
"@git.zone/tstest": "^1.0.44",
|
||||||
|
"@push.rocks/tapbundle": "^5.0.15",
|
||||||
|
"@types/node": "^20.8.7"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://gitlab.com/push.rocks/smarti18n.git"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://gitlab.com/push.rocks/smarti18n/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://gitlab.com/push.rocks/smarti18n#readme",
|
||||||
|
"browserslist": [
|
||||||
|
"last 1 chrome versions"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"ts/**/*",
|
||||||
|
"ts_web/**/*",
|
||||||
|
"dist/**/*",
|
||||||
|
"dist_*/**/*",
|
||||||
|
"dist_ts/**/*",
|
||||||
|
"dist_ts_web/**/*",
|
||||||
|
"assets/**/*",
|
||||||
|
"cli.js",
|
||||||
|
"npmextra.json",
|
||||||
|
"readme.md"
|
||||||
|
]
|
||||||
|
}
|
5655
pnpm-lock.yaml
generated
Normal file
5655
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
31
readme.md
Normal file
31
readme.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# @push.rocks/smarti18n
|
||||||
|
a package dealing with i18n stuff
|
||||||
|
|
||||||
|
## Availabililty and Links
|
||||||
|
* [npmjs.org (npm package)](https://www.npmjs.com/package/@push.rocks/smarti18n)
|
||||||
|
* [gitlab.com (source)](https://gitlab.com/push.rocks/smarti18n)
|
||||||
|
* [github.com (source mirror)](https://github.com/push.rocks/smarti18n)
|
||||||
|
* [docs (typedoc)](https://push.rocks.gitlab.io/smarti18n/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
|
||||||
|
Status Category | Status Badge
|
||||||
|
-- | --
|
||||||
|
GitLab Pipelines | [![pipeline status](https://gitlab.com/push.rocks/smarti18n/badges/master/pipeline.svg)](https://lossless.cloud)
|
||||||
|
GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/push.rocks/smarti18n/badges/master/coverage.svg)](https://lossless.cloud)
|
||||||
|
npm | [![npm downloads per month](https://badgen.net/npm/dy/@push.rocks/smarti18n)](https://lossless.cloud)
|
||||||
|
Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/push.rocks/smarti18n)](https://lossless.cloud)
|
||||||
|
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
|
||||||
|
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
|
||||||
|
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@push.rocks/smarti18n)](https://lossless.cloud)
|
||||||
|
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@push.rocks/smarti18n)](https://lossless.cloud)
|
||||||
|
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@push.rocks/smarti18n)](https://lossless.cloud)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Use TypeScript for best in class intellisense
|
||||||
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
|
## Legal
|
||||||
|
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
||||||
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
8
test/test.ts
Normal file
8
test/test.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||||
|
import * as smarti18n from '../ts/index.js'
|
||||||
|
|
||||||
|
tap.test('first test', async () => {
|
||||||
|
console.log(smarti18n)
|
||||||
|
})
|
||||||
|
|
||||||
|
tap.start()
|
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@push.rocks/smarti18n',
|
||||||
|
version: '1.0.2',
|
||||||
|
description: 'a package dealing with i18n stuff'
|
||||||
|
}
|
251
ts/countrycodes.ts
Normal file
251
ts/countrycodes.ts
Normal file
@ -0,0 +1,251 @@
|
|||||||
|
export const countryCodeArray = [
|
||||||
|
{ "code": "AD", "name": "Andorra" },
|
||||||
|
{ "code": "AE", "name": "United Arab Emirates" },
|
||||||
|
{ "code": "AF", "name": "Afghanistan" },
|
||||||
|
{ "code": "AG", "name": "Antigua and Barbuda" },
|
||||||
|
{ "code": "AI", "name": "Anguilla" },
|
||||||
|
{ "code": "AL", "name": "Albania" },
|
||||||
|
{ "code": "AM", "name": "Armenia" },
|
||||||
|
{ "code": "AO", "name": "Angola" },
|
||||||
|
{ "code": "AQ", "name": "Antarctica" },
|
||||||
|
{ "code": "AR", "name": "Argentina" },
|
||||||
|
{ "code": "AS", "name": "American Samoa" },
|
||||||
|
{ "code": "AT", "name": "Austria" },
|
||||||
|
{ "code": "AU", "name": "Australia" },
|
||||||
|
{ "code": "AW", "name": "Aruba" },
|
||||||
|
{ "code": "AX", "name": "Åland Islands" },
|
||||||
|
{ "code": "AZ", "name": "Azerbaijan" },
|
||||||
|
{ "code": "BA", "name": "Bosnia and Herzegovina" },
|
||||||
|
{ "code": "BB", "name": "Barbados" },
|
||||||
|
{ "code": "BD", "name": "Bangladesh" },
|
||||||
|
{ "code": "BE", "name": "Belgium" },
|
||||||
|
{ "code": "BF", "name": "Burkina Faso" },
|
||||||
|
{ "code": "BG", "name": "Bulgaria" },
|
||||||
|
{ "code": "BH", "name": "Bahrain" },
|
||||||
|
{ "code": "BI", "name": "Burundi" },
|
||||||
|
{ "code": "BJ", "name": "Benin" },
|
||||||
|
{ "code": "BL", "name": "Saint Barthélemy" },
|
||||||
|
{ "code": "BM", "name": "Bermuda" },
|
||||||
|
{ "code": "BN", "name": "Brunei Darussalam" },
|
||||||
|
{ "code": "BO", "name": "Bolivia, Plurinational State of" },
|
||||||
|
{ "code": "BQ", "name": "Bonaire, Sint Eustatius and Saba" },
|
||||||
|
{ "code": "BR", "name": "Brazil" },
|
||||||
|
{ "code": "BS", "name": "Bahamas" },
|
||||||
|
{ "code": "BT", "name": "Bhutan" },
|
||||||
|
{ "code": "BV", "name": "Bouvet Island" },
|
||||||
|
{ "code": "BW", "name": "Botswana" },
|
||||||
|
{ "code": "BY", "name": "Belarus" },
|
||||||
|
{ "code": "BZ", "name": "Belize" },
|
||||||
|
{ "code": "CA", "name": "Canada" },
|
||||||
|
{ "code": "CC", "name": "Cocos (Keeling) Islands" },
|
||||||
|
{ "code": "CD", "name": "Congo, Democratic Republic of the" },
|
||||||
|
{ "code": "CF", "name": "Central African Republic" },
|
||||||
|
{ "code": "CG", "name": "Congo" },
|
||||||
|
{ "code": "CH", "name": "Switzerland" },
|
||||||
|
{ "code": "CI", "name": "Côte d'Ivoire" },
|
||||||
|
{ "code": "CK", "name": "Cook Islands" },
|
||||||
|
{ "code": "CL", "name": "Chile" },
|
||||||
|
{ "code": "CM", "name": "Cameroon" },
|
||||||
|
{ "code": "CN", "name": "China" },
|
||||||
|
{ "code": "CO", "name": "Colombia" },
|
||||||
|
{ "code": "CR", "name": "Costa Rica" },
|
||||||
|
{ "code": "CU", "name": "Cuba" },
|
||||||
|
{ "code": "CV", "name": "Cabo Verde" },
|
||||||
|
{ "code": "CW", "name": "Curaçao" },
|
||||||
|
{ "code": "CX", "name": "Christmas Island" },
|
||||||
|
{ "code": "CY", "name": "Cyprus" },
|
||||||
|
{ "code": "CZ", "name": "Czechia" },
|
||||||
|
{ "code": "DE", "name": "Germany" },
|
||||||
|
{ "code": "DJ", "name": "Djibouti" },
|
||||||
|
{ "code": "DK", "name": "Denmark" },
|
||||||
|
{ "code": "DM", "name": "Dominica" },
|
||||||
|
{ "code": "DO", "name": "Dominican Republic" },
|
||||||
|
{ "code": "DZ", "name": "Algeria" },
|
||||||
|
{ "code": "EC", "name": "Ecuador" },
|
||||||
|
{ "code": "EE", "name": "Estonia" },
|
||||||
|
{ "code": "EG", "name": "Egypt" },
|
||||||
|
{ "code": "EH", "name": "Western Sahara" },
|
||||||
|
{ "code": "ER", "name": "Eritrea" },
|
||||||
|
{ "code": "ES", "name": "Spain" },
|
||||||
|
{ "code": "ET", "name": "Ethiopia" },
|
||||||
|
{ "code": "FI", "name": "Finland" },
|
||||||
|
{ "code": "FJ", "name": "Fiji" },
|
||||||
|
{ "code": "FK", "name": "Falkland Islands (Malvinas)" },
|
||||||
|
{ "code": "FM", "name": "Micronesia, Federated States of" },
|
||||||
|
{ "code": "FO", "name": "Faroe Islands" },
|
||||||
|
{ "code": "FR", "name": "France" },
|
||||||
|
{ "code": "GA", "name": "Gabon" },
|
||||||
|
{ "code": "GB", "name": "United Kingdom of Great Britain and Northern Ireland" },
|
||||||
|
{ "code": "GD", "name": "Grenada" },
|
||||||
|
{ "code": "GE", "name": "Georgia" },
|
||||||
|
{ "code": "GF", "name": "French Guiana" },
|
||||||
|
{ "code": "GG", "name": "Guernsey" },
|
||||||
|
{ "code": "GH", "name": "Ghana" },
|
||||||
|
{ "code": "GI", "name": "Gibraltar" },
|
||||||
|
{ "code": "GL", "name": "Greenland" },
|
||||||
|
{ "code": "GM", "name": "Gambia" },
|
||||||
|
{ "code": "GN", "name": "Guinea" },
|
||||||
|
{ "code": "GP", "name": "Guadeloupe" },
|
||||||
|
{ "code": "GQ", "name": "Equatorial Guinea" },
|
||||||
|
{ "code": "GR", "name": "Greece" },
|
||||||
|
{ "code": "GS", "name": "South Georgia and the South Sandwich Islands" },
|
||||||
|
{ "code": "GT", "name": "Guatemala" },
|
||||||
|
{ "code": "GU", "name": "Guam" },
|
||||||
|
{ "code": "GW", "name": "Guinea-Bissau" },
|
||||||
|
{ "code": "GY", "name": "Guyana" },
|
||||||
|
{ "code": "HK", "name": "Hong Kong" },
|
||||||
|
{ "code": "HM", "name": "Heard Island and McDonald Islands" },
|
||||||
|
{ "code": "HN", "name": "Honduras" },
|
||||||
|
{ "code": "HR", "name": "Croatia" },
|
||||||
|
{ "code": "HT", "name": "Haiti" },
|
||||||
|
{ "code": "HU", "name": "Hungary" },
|
||||||
|
{ "code": "ID", "name": "Indonesia" },
|
||||||
|
{ "code": "IE", "name": "Ireland" },
|
||||||
|
{ "code": "IL", "name": "Israel" },
|
||||||
|
{ "code": "IM", "name": "Isle of Man" },
|
||||||
|
{ "code": "IN", "name": "India" },
|
||||||
|
{ "code": "IO", "name": "British Indian Ocean Territory" },
|
||||||
|
{ "code": "IQ", "name": "Iraq" },
|
||||||
|
{ "code": "IR", "name": "Iran, Islamic Republic of" },
|
||||||
|
{ "code": "IS", "name": "Iceland" },
|
||||||
|
{ "code": "IT", "name": "Italy" },
|
||||||
|
{ "code": "JE", "name": "Jersey" },
|
||||||
|
{ "code": "JM", "name": "Jamaica" },
|
||||||
|
{ "code": "JO", "name": "Jordan" },
|
||||||
|
{ "code": "JP", "name": "Japan" },
|
||||||
|
{ "code": "KE", "name": "Kenya" },
|
||||||
|
{ "code": "KG", "name": "Kyrgyzstan" },
|
||||||
|
{ "code": "KH", "name": "Cambodia" },
|
||||||
|
{ "code": "KI", "name": "Kiribati" },
|
||||||
|
{ "code": "KM", "name": "Comoros" },
|
||||||
|
{ "code": "KN", "name": "Saint Kitts and Nevis" },
|
||||||
|
{ "code": "KP", "name": "Korea, Democratic People's Republic of" },
|
||||||
|
{ "code": "KR", "name": "Korea, Republic of" },
|
||||||
|
{ "code": "KW", "name": "Kuwait" },
|
||||||
|
{ "code": "KY", "name": "Cayman Islands" },
|
||||||
|
{ "code": "KZ", "name": "Kazakhstan" },
|
||||||
|
{ "code": "LA", "name": "Lao People's Democratic Republic" },
|
||||||
|
{ "code": "LB", "name": "Lebanon" },
|
||||||
|
{ "code": "LC", "name": "Saint Lucia" },
|
||||||
|
{ "code": "LI", "name": "Liechtenstein" },
|
||||||
|
{ "code": "LK", "name": "Sri Lanka" },
|
||||||
|
{ "code": "LR", "name": "Liberia" },
|
||||||
|
{ "code": "LS", "name": "Lesotho" },
|
||||||
|
{ "code": "LT", "name": "Lithuania" },
|
||||||
|
{ "code": "LU", "name": "Luxembourg" },
|
||||||
|
{ "code": "LV", "name": "Latvia" },
|
||||||
|
{ "code": "LY", "name": "Libya" },
|
||||||
|
{ "code": "MA", "name": "Morocco" },
|
||||||
|
{ "code": "MC", "name": "Monaco" },
|
||||||
|
{ "code": "MD", "name": "Moldova, Republic of" },
|
||||||
|
{ "code": "ME", "name": "Montenegro" },
|
||||||
|
{ "code": "MF", "name": "Saint Martin, (French part)" },
|
||||||
|
{ "code": "MG", "name": "Madagascar" },
|
||||||
|
{ "code": "MH", "name": "Marshall Islands" },
|
||||||
|
{ "code": "MK", "name": "North Macedonia" },
|
||||||
|
{ "code": "ML", "name": "Mali" },
|
||||||
|
{ "code": "MM", "name": "Myanmar" },
|
||||||
|
{ "code": "MN", "name": "Mongolia" },
|
||||||
|
{ "code": "MO", "name": "Macao" },
|
||||||
|
{ "code": "MP", "name": "Northern Mariana Islands" },
|
||||||
|
{ "code": "MQ", "name": "Martinique" },
|
||||||
|
{ "code": "MR", "name": "Mauritania" },
|
||||||
|
{ "code": "MS", "name": "Montserrat" },
|
||||||
|
{ "code": "MT", "name": "Malta" },
|
||||||
|
{ "code": "MU", "name": "Mauritius" },
|
||||||
|
{ "code": "MV", "name": "Maldives" },
|
||||||
|
{ "code": "MW", "name": "Malawi" },
|
||||||
|
{ "code": "MX", "name": "Mexico" },
|
||||||
|
{ "code": "MY", "name": "Malaysia" },
|
||||||
|
{ "code": "MZ", "name": "Mozambique" },
|
||||||
|
{ "code": "NA", "name": "Namibia" },
|
||||||
|
{ "code": "NC", "name": "New Caledonia" },
|
||||||
|
{ "code": "NE", "name": "Niger" },
|
||||||
|
{ "code": "NF", "name": "Norfolk Island" },
|
||||||
|
{ "code": "NG", "name": "Nigeria" },
|
||||||
|
{ "code": "NI", "name": "Nicaragua" },
|
||||||
|
{ "code": "NL", "name": "Netherlands" },
|
||||||
|
{ "code": "NO", "name": "Norway" },
|
||||||
|
{ "code": "NP", "name": "Nepal" },
|
||||||
|
{ "code": "NR", "name": "Nauru" },
|
||||||
|
{ "code": "NU", "name": "Niue" },
|
||||||
|
{ "code": "NZ", "name": "New Zealand" },
|
||||||
|
{ "code": "OM", "name": "Oman" },
|
||||||
|
{ "code": "PA", "name": "Panama" },
|
||||||
|
{ "code": "PE", "name": "Peru" },
|
||||||
|
{ "code": "PF", "name": "French Polynesia" },
|
||||||
|
{ "code": "PG", "name": "Papua New Guinea" },
|
||||||
|
{ "code": "PH", "name": "Philippines" },
|
||||||
|
{ "code": "PK", "name": "Pakistan" },
|
||||||
|
{ "code": "PL", "name": "Poland" },
|
||||||
|
{ "code": "PM", "name": "Saint Pierre and Miquelon" },
|
||||||
|
{ "code": "PN", "name": "Pitcairn" },
|
||||||
|
{ "code": "PR", "name": "Puerto Rico" },
|
||||||
|
{ "code": "PS", "name": "Palestine, State of" },
|
||||||
|
{ "code": "PT", "name": "Portugal" },
|
||||||
|
{ "code": "PW", "name": "Palau" },
|
||||||
|
{ "code": "PY", "name": "Paraguay" },
|
||||||
|
{ "code": "QA", "name": "Qatar" },
|
||||||
|
{ "code": "RE", "name": "Réunion" },
|
||||||
|
{ "code": "RO", "name": "Romania" },
|
||||||
|
{ "code": "RS", "name": "Serbia" },
|
||||||
|
{ "code": "RU", "name": "Russian Federation" },
|
||||||
|
{ "code": "RW", "name": "Rwanda" },
|
||||||
|
{ "code": "SA", "name": "Saudi Arabia" },
|
||||||
|
{ "code": "SB", "name": "Solomon Islands" },
|
||||||
|
{ "code": "SC", "name": "Seychelles" },
|
||||||
|
{ "code": "SD", "name": "Sudan" },
|
||||||
|
{ "code": "SE", "name": "Sweden" },
|
||||||
|
{ "code": "SG", "name": "Singapore" },
|
||||||
|
{ "code": "SH", "name": "Saint Helena, Ascension and Tristan da Cunha" },
|
||||||
|
{ "code": "SI", "name": "Slovenia" },
|
||||||
|
{ "code": "SJ", "name": "Svalbard and Jan Mayen" },
|
||||||
|
{ "code": "SK", "name": "Slovakia" },
|
||||||
|
{ "code": "SL", "name": "Sierra Leone" },
|
||||||
|
{ "code": "SM", "name": "San Marino" },
|
||||||
|
{ "code": "SN", "name": "Senegal" },
|
||||||
|
{ "code": "SO", "name": "Somalia" },
|
||||||
|
{ "code": "SR", "name": "Suriname" },
|
||||||
|
{ "code": "SS", "name": "South Sudan" },
|
||||||
|
{ "code": "ST", "name": "Sao Tome and Principe" },
|
||||||
|
{ "code": "SV", "name": "El Salvador" },
|
||||||
|
{ "code": "SX", "name": "Sint Maarten, (Dutch part)" },
|
||||||
|
{ "code": "SY", "name": "Syrian Arab Republic" },
|
||||||
|
{ "code": "SZ", "name": "Eswatini" },
|
||||||
|
{ "code": "TC", "name": "Turks and Caicos Islands" },
|
||||||
|
{ "code": "TD", "name": "Chad" },
|
||||||
|
{ "code": "TF", "name": "French Southern Territories" },
|
||||||
|
{ "code": "TG", "name": "Togo" },
|
||||||
|
{ "code": "TH", "name": "Thailand" },
|
||||||
|
{ "code": "TJ", "name": "Tajikistan" },
|
||||||
|
{ "code": "TK", "name": "Tokelau" },
|
||||||
|
{ "code": "TL", "name": "Timor-Leste" },
|
||||||
|
{ "code": "TM", "name": "Turkmenistan" },
|
||||||
|
{ "code": "TN", "name": "Tunisia" },
|
||||||
|
{ "code": "TO", "name": "Tonga" },
|
||||||
|
{ "code": "TR", "name": "Türkiye" },
|
||||||
|
{ "code": "TT", "name": "Trinidad and Tobago" },
|
||||||
|
{ "code": "TV", "name": "Tuvalu" },
|
||||||
|
{ "code": "TW", "name": "Taiwan, Province of China" },
|
||||||
|
{ "code": "TZ", "name": "Tanzania, United Republic of" },
|
||||||
|
{ "code": "UA", "name": "Ukraine" },
|
||||||
|
{ "code": "UG", "name": "Uganda" },
|
||||||
|
{ "code": "UM", "name": "United States Minor Outlying Islands" },
|
||||||
|
{ "code": "US", "name": "United States of America" },
|
||||||
|
{ "code": "UY", "name": "Uruguay" },
|
||||||
|
{ "code": "UZ", "name": "Uzbekistan" },
|
||||||
|
{ "code": "VA", "name": "Holy See" },
|
||||||
|
{ "code": "VC", "name": "Saint Vincent and the Grenadines" },
|
||||||
|
{ "code": "VE", "name": "Venezuela, Bolivarian Republic of" },
|
||||||
|
{ "code": "VG", "name": "Virgin Islands, British" },
|
||||||
|
{ "code": "VI", "name": "Virgin Islands, U.S." },
|
||||||
|
{ "code": "VN", "name": "Viet Nam" },
|
||||||
|
{ "code": "VU", "name": "Vanuatu" },
|
||||||
|
{ "code": "WF", "name": "Wallis and Futuna" },
|
||||||
|
{ "code": "WS", "name": "Samoa" },
|
||||||
|
{ "code": "YE", "name": "Yemen" },
|
||||||
|
{ "code": "YT", "name": "Mayotte" },
|
||||||
|
{ "code": "ZA", "name": "South Africa" },
|
||||||
|
{ "code": "ZM", "name": "Zambia" },
|
||||||
|
{ "code": "ZW", "name": "Zimbabwe" }
|
||||||
|
];
|
3
ts/index.ts
Normal file
3
ts/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import * as plugins from './smarti18n.plugins.js';
|
||||||
|
|
||||||
|
export let demoExport = 'Hi there! :) This is an exported string';
|
4
ts/smarti18n.plugins.ts
Normal file
4
ts/smarti18n.plugins.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
const removeme = {};
|
||||||
|
export {
|
||||||
|
removeme
|
||||||
|
}
|
14
tsconfig.json
Normal file
14
tsconfig.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"useDefineForClassFields": false,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "NodeNext",
|
||||||
|
"moduleResolution": "NodeNext",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"verbatimModuleSyntax": true
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"dist_*/**/*.d.ts"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user