You do this.
const handleEvent = e => {
setState(e.target.value);
console.log(state);
}
// load your translations | |
// add whatever number namespaces you need | |
const localesNSContent = { | |
'en':[ | |
{ | |
content:fs.readFileSync(`src/locales/en/translations.json`, 'utf8'), | |
ns:'translations' | |
} | |
], | |
'pt':[ |
#!/bin/bash | |
DAYS_SINCE_LAST_CHANGE=14 # If a project hasn't been touched in this long its node_modules will be deleted | |
SEARCH_PATH="./Git" # Update this to the path where your code is stored | |
TOTAL_BYTES_REMOVED=0 | |
Mb=1000000 | |
Kb=1000 | |
node_modules=$(find $SEARCH_PATH -name "node_modules" -type d -prune) |
const Discord = require('discord.js') | |
// your bot token | |
const token = 'NzM4MDk2NjA4NDQwNDgzODcw.XyG8CA.RbwIBFnAbrRDYOlTdLYgG_T4CMk' | |
const discordUsername = 'example#1234' | |
const roleToAdd = 'Cool Person' | |
const guildName = 'Your Guild Name' | |
function deferred() { | |
let resolve, reject |
import { | |
RekognitionClient, | |
DetectFacesCommand, | |
DetectFacesCommandInput, | |
} from "@aws-sdk/client-rekognition"; | |
import imageUrlBuilder from "@sanity/image-url"; | |
import client, { SanityImageAssetDocument, Transaction } from "@sanity/client"; | |
import { default as nodeFetch } from "node-fetch"; | |
const SANITY_DATASET = "<my project dataset>"; |