Skip to main content

Features

  • Dicord interactions translator
  • Optimization
  • Easy to use

Installation

  • Install evg with pip
  pip install evg
  • Set up a new folder /locales
  • Add language packs with the file extension ".json" according to the template /locales/en-US/example.json

Examples

File - locales/en-US/example.json

{
    "hello1": "Hello world!",
    "hello2": "Hello {name}!",
    "hello3": "Hello {0}!"
}

Base

import evg
_ = evg.MSG("en-US").msg
print(_("hello1"))
  • Output text: Hello world!

OR

import evg
from nextcord import Interaction, PartialInteractionMessage
async def hi(ctx: Interaction) -> PartialInteractionMessage:
    _ = evg.MSG(ctx.locale).msg
    return await ctx.send(content=_("hello1"))
  • Output text: Hello world!

OR

import evg
from nextcord import Interaction, PartialInteractionMessage

async def hi(ctx: Interaction) -> PartialInteractionMessage:
    _ = evg.MSG(ctx.locale).msg
    return await ctx.send(content=(_("hello2", name="Nikita")))

async def hi2(ctx: Interaction) -> PartialInteractionMessage:
    _ = evg.MSG(ctx.locale).msg
    return await ctx.send(content=(_("hello3", "Bob")))

Output text:

  • Hello Nikita!
  • Hello Bob!

Change settings

Default language

import evg
evg.Setup.language("en-US")

Default text if no translation was found

import evg
evg.Setup.text("рџ’•")

Support

Discord Gmail

Metadata

Release files for evg 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for evg 2.8.0
File Size Uploaded
evg-2.8.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for evg 2.8.0
File Interpreter ABI Platform
evg-2.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / evg-2.8.0.tar.gz

Download URL evg-2.8.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0922fd4fa9f2cea67e478cdb2fc295780b6da5ed1ac20ca1411cf28ce766180f
BLAKE2b-256 checksum
How to use checksums
841c1b506c90f9707844b18cd9e2fe09cf9e48a41cf099f1628cfde60c31737a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release files / evg-2.8.0-py3-none-any.whl

Download URL evg-2.8.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b2cf89d3e2ce22107896516ebb10d693d270b6b14550f349a2f6adee0fd6c5a
BLAKE2b-256 checksum
How to use checksums
367e351eb23841f3b41f011fb3d8829f8524917aca82db389484effb356b9a6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

2.8.0 This release

2 release files

2.7.1

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.10

2 release files

2.5.9

2 release files

2.5.8

2 release files

2.5.7

2 release files

2.5.6

2 release files

2.5.5

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.0

1 release file

2.4.1

1 release file

2.4.0

1 release file

2.3.1

1 release file

2.2.0

1 release file

2.1.1

1 release file

2.0

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page