Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Localization #103

Open
SocketSomeone opened this issue Feb 13, 2022 · 0 comments
Open

Localization #103

SocketSomeone opened this issue Feb 13, 2022 · 0 comments

Comments

@SocketSomeone
Copy link
Member

SocketSomeone commented Feb 13, 2022

i18n.configure({
	locales: ['ru', 'en'],
	defaultLocale: 'ru',
	syncFiles: true,
	autoReload: true,
	directory: __dirname + '/../i18n',
	objectNotation: true,
	logDebugFn: function (msg: string) {
		console.log('debug', msg);
	},
	logWarnFn: function (msg: string) {
		console.error('warn', msg);
	},
	logErrorFn: function (msg: string) {
		console.error('error', msg);
	}
});

#!/bin/sh
set -e

if [ ! -f "node_modules/.bin/sentry-cli" ]; then
	echo "Installing local sentry"
	yarn add @sentry/cli
fi

echo "Release version (x.x.x): "
read VERSION
node_modules/.bin/sentry-cli releases -o miko-someone -p miko files $VERSION upload-sourcemaps ./bin
node_modules/.bin/sentry-cli releases -o miko-someone set-commits --auto $VERSION
node_modules/.bin/sentry-cli releases -o miko-someone -p miko deploys $VERSION new -e production

https://github.com/whoisniskii/Suki-Rewrite/blob/939bc017199a892ddc008831b0270b01bdcb3c2b/src/Managers/LocaleManager.ts#L6

https://github.com/i18next/i18next-http-backend/blob/master/example/node/app.js

https://dev.to/adrai/how-does-server-side-internationalization-i18n-look-like-5f4c

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant