GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ApertaCodex/code-text-translator: Detects quoted strings and offers translation to other languages or text enhancement/rephrasing

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
images
images
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.vscodeignore
.vscodeignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Text Translator & Enhancer

A VS Code extension that automatically detects quoted strings in your code and offers translation to other languages or text enhancement/rephrasing capabilities.

Features

🔍 String Detection

  • Automatically detects quoted strings in any programming language
  • Supports various quote types:
    • Double quotes: "text"
    • Single quotes: 'text'
    • Template literals: `text` (JavaScript/TypeScript)
    • Triple quotes: """text""" (Python)
    • Verbatim strings: @"text" (C#)
  • Smart filtering to exclude code-like strings
  • Real-time detection as you type

🌍 Translation

  • Translate selected text or detected strings to multiple languages
  • Configurable target languages
  • Multiple output options:
    • Replace original text
    • Insert translation as comment
    • Copy to clipboard
    • Open in new document

✨ Text Enhancement

  • Rephrase and enhance text in various styles:
    • Formal
    • Casual
    • Concise
    • Detailed
    • Professional
    • Creative
  • Same flexible output options as translation

🎯 Smart Interface

  • Dedicated sidebar panel showing all detected strings
  • Context menus for quick actions
  • Keyboard shortcuts for efficient workflow
  • Click on detected strings to jump to their location

Usage

Commands

  • Translate Text (Ctrl+Shift+T): Translate selected text
  • Enhance Text (Ctrl+Shift+E): Enhance/rephrase selected text
  • Detect Strings (Ctrl+Shift+D): Manually detect all strings in current file

Sidebar Panel

  1. Open the "Text Translator" panel in the Explorer sidebar
  2. View all detected strings in the current file
  3. Click on any string to jump to its location
  4. Right-click for translation and enhancement options

Context Menus

  • Right-click on selected text for translation/enhancement options
  • Use the toolbar in the sidebar panel for bulk operations

Configuration

Target Languages

Customize the list of available translation languages:

"textTranslator.targetLanguages": [
  "Spanish",
  "French",
  "German",
  "Italian",
  "Portuguese",
  "Russian",
  "Chinese",
  "Japanese"
]

Enhancement Types

Configure available text enhancement options:

"textTranslator.enhancementTypes": [
  "Formal",
  "Casual",
  "Concise",
  "Detailed",
  "Professional",
  "Creative"
]

Auto-Detection

Enable/disable automatic string detection:

"textTranslator.autoDetectStrings": true

Inline Actions

Show/hide inline action buttons:

"textTranslator.showInlineActions": true

Supported Languages

The extension detects strings in all programming languages with special support for:

  • JavaScript/TypeScript (including template literals)
  • Python (including triple-quoted strings)
  • C# (including verbatim strings)
  • PHP
  • And many more!

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Text Translator & Enhancer"
  4. Click Install

API Integration

Note: This extension currently uses mock translation and enhancement for demonstration. To use real translation services, you would need to:

  1. Integrate with translation APIs (Google Translate, Azure Translator, etc.)
  2. Add AI text enhancement services (OpenAI, Azure OpenAI, etc.)
  3. Configure API keys in settings

Contributing

Contributions are welcome! Please feel free to submit issues and enhancement requests.

License

MIT License - see LICENSE file for details.

About

Detects quoted strings and offers translation to other languages or text enhancement/rephrasing

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.