Skip to content

Commit

Permalink
📃 docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
hmydgz committed Aug 21, 2023
1 parent 9fce580 commit 8c38c6d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 63 deletions.
126 changes: 63 additions & 63 deletions .github/workflows/test.action.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
name: test
# name: test

on:
push:
branches:
- main
# on:
# push:
# branches:
# - main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3


# - name: Read previous version number
# id: read-version
# run: echo "::set-output name=version::$(cat .version)"
# # - name: Read previous version number
# # id: read-version
# # run: echo "::set-output name=version::$(cat .version)"

# - name: Read current version number
# id: read-current-version
# uses: actions/github-script@v4
# with:
# script: |
# const fs = require('fs');
# const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
# console.log(packageJson.version);
# # - name: Read current version number
# # id: read-current-version
# # uses: actions/github-script@v4
# # with:
# # script: |
# # const fs = require('fs');
# # const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
# # console.log(packageJson.version);

# - name: Compare versions
# run: |
# if [ "${{ steps.read-version.outputs.version }}" != "${{ steps.read-current-version.outputs.result }}" ]; then
# echo "Version changed!";
# else
# echo "Version not changed!";
# fi
# # - name: Compare versions
# # run: |
# # if [ "${{ steps.read-version.outputs.version }}" != "${{ steps.read-current-version.outputs.result }}" ]; then
# # echo "Version changed!";
# # else
# # echo "Version not changed!";
# # fi


# - name: 安装 Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: https://registry.npmjs.org/
# # - name: 安装 Node.js
# # uses: actions/setup-node@v3
# # with:
# # node-version: 16
# # registry-url: https://registry.npmjs.org/

# - name: 安装 pnpm
# uses: pnpm/action-setup@v2
# id: pnpm-install
# with:
# version: 8
# run_install: false
# # - name: 安装 pnpm
# # uses: pnpm/action-setup@v2
# # id: pnpm-install
# # with:
# # version: 8
# # run_install: false

# - name: 获取 pnpm 缓存路径
# id: pnpm-cache
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
# # - name: 获取 pnpm 缓存路径
# # id: pnpm-cache
# # shell: bash
# # run: |
# # echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

# - name: 设置 pnpm 缓存
# uses: actions/cache@v3
# with:
# path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-
# # - name: 设置 pnpm 缓存
# # uses: actions/cache@v3
# # with:
# # path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
# # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# # restore-keys: |
# # ${{ runner.os }}-pnpm-store-



# - name: 安装 rollup
# run: pnpm i -g rollup
# # - name: 安装 rollup
# # run: pnpm i -g rollup

# - name: 安装 TS
# run: pnpm i -g typescript
# # - name: 安装 TS
# # run: pnpm i -g typescript

# - name: 安装依赖
# run: pnpm i
# # - name: 安装依赖
# # run: pnpm i

# - name: 构建
# run: pnpm build
# # - name: 构建
# # run: pnpm build

# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# # - run: npm publish
# # env:
# # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

English | [简体中文](./README.zh_CN.md)

[![npm](https://img.shields.io/npm/v/i18n-check-keys.svg)](https://github.com/heimeiyaodagongzai/i18n-check-keys) [![build status](https://github.com/heimeiyaodagongzai/i18n-check-keys/actions/workflows/build.action.yml/badge.svg?branch=main)](https://github.com/heimeiyaodagongzai/i18n-check-keys/actions)


A tool to check for missing internationalization keys in a project

![](http://qiniuyun.hmydgz.top/doc/img/i18n-check-keys-img1.png)
Expand Down
2 changes: 2 additions & 0 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[English](./README.md) | 简体中文

[![npm](https://img.shields.io/npm/v/i18n-check-keys.svg)](https://github.com/heimeiyaodagongzai/i18n-check-keys) [![build status](https://github.com/heimeiyaodagongzai/i18n-check-keys/actions/workflows/build.action.yml/badge.svg?branch=main)](https://github.com/heimeiyaodagongzai/i18n-check-keys/actions)

用于检查项目中的国际化 key 是否存在遗漏的工具

![](http://qiniuyun.hmydgz.top/doc/img/i18n-check-keys-img1.png)
Expand Down

0 comments on commit 8c38c6d

Please sign in to comment.