Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update i18n meta data handling script #266

Merged
merged 2 commits into from
Mar 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add meta file existence check
  • Loading branch information
hustcer committed Mar 8, 2022
commit aab4ae6e4472c6a767fdb0262eb15a29c6c6ebfd
6 changes: 5 additions & 1 deletion i18n.nu
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

let meta = open 'i18n-meta.json'
let META_FILE = 'i18n-meta.json'
if ($META_FILE | path exists) == false {
echo '[]' | save -r $META_FILE
}
let meta = open $META_FILE

# Update issue contents for https://github.com/nushell/nushell.github.io/issues/261
def update-i18n-status [] {
Expand Down