# Analyzing Results
Source: https://docs.gleef.eu/ab-testing/best-practices/analyzing-results
Once your A/B test is complete, the next crucial step is analyzing the results. The way you interpret these results will determine the effectiveness of your tests.
## Using Statistical Methods
### Statistical Significance
To determine if the difference between the baseline and the variation is meaningful, you need to check for **statistical significance**. A 95% confidence level is commonly used, meaning there's only a 5% chance the result happened by random chance.
### Key Metrics to Monitor:
* Duration: 14 days
* Confidence: 95%
* Sample size: 1000 visitors per variation (including the baseline)
* Success events: 50 success events per variation (including the baseline)
You can change these default metrics depending on your website traffic to get more accurate results. [Contact us](mailto:support@gleef.eu) for more information.
For more detailed guidance on statistical significance, refer to our [statistics Q\&A.](/Q\&A/statistics-data)
## Interpreting Results
### Beyond Finding a Winner
Winning variations are not the only goal. Analyze why a variation performed better—was it the wording, the placement, or the clarity? Understanding the reasons behind success or failure will help you improve future tests.
## Making Data-Driven Decisions
Don’t just stop after identifying the winning variation. Use the insights gathered to continuously optimize your website. These learnings can inform new experiments and increase your overall effectiveness in improving user engagement and conversion rates.
Keep testing new hypotheses and iterate based on your findings.
Learn more about [data interpretation here.](/Q\&A/statistics-data)
# Common Pitfalls
Source: https://docs.gleef.eu/ab-testing/best-practices/common-pitfalls
Avoiding common mistakes can make a huge difference in the quality of your A/B test results. Here are some common pitfalls and how to avoid them.
## Changing Multiple Elements at Once
When you change multiple elements at the same time, it becomes difficult to isolate which change caused the performance difference. Stick to testing one element per experiment, whether it’s a CTA button, a headline, or a product description.
## Running Tests Without Sufficient Traffic
Ensure you have enough visitors to detect significant differences. Without enough traffic, your test may never reach statistical significance.
For a 1% difference, you’ll need around 7,000 visitors per variation.
Learn more about [traffic requirements here.](/Q\&A/statistics-data#statistical-significance)
## Stopping Tests Too Early
Prematurely ending a test can lead to inaccurate conclusions. Always let the test run for the full duration needed to gather enough data, even if early results look promising.
We recommend running tests for at least 1-2 weeks or until you reach statistical significance.
# Creating Variations
Source: https://docs.gleef.eu/ab-testing/best-practices/creating-variations
Creating effective variations is a crucial part of a successful A/B test. The changes you introduce must be impactful enough to show measurable differences in performance.
## Baseline vs. Variations
### Keep the Default Text as Baseline
The baseline (original version) serves as the reference point. Ensure that the baseline reflects your current best-performing version, so you can measure improvements against it.
### How Many Variations Should You Test?
To keep your experiment manageable and ensure statistical significance, limit the number of variations to two or three. Each additional variation requires more traffic and time to achieve reliable results.
You’ll need around 7,000 users per variation to detect a 1% change in performance from your baseline.
Learn more about [statistical significance here.](/Q\&A/statistics-data#statistical-significance)
## What Elements Should You Experiment With?
* **Headlines:** Experiment with different headlines to see which captures more user attention.
* **Call-to-Action (CTA) Buttons:** Changing CTA wording (e.g., “Buy Now” vs. “Get Started”) can dramatically impact user behavior.
* **Product Descriptions:** Clearer, more concise descriptions often lead to higher conversion rates.
By focusing on high-impact elements, you ensure that your test drives meaningful improvements in user experience and conversion rates.
### Why No UI Experiments?
Gleef specializes in A/B testing for wording, not UI. Testing user interface (UI) elements involves different strategies that can affect the overall structure of your website. Our goal is to keep A/B testing simple, no-code, and focused on wording.
# Goals & Metrics
Source: https://docs.gleef.eu/ab-testing/best-practices/goals-metrics
Clear goals and well-defined metrics are essential to the success of any A/B test. Without a clear understanding of what you’re testing and how you’ll measure success, the results of your experiment will be hard to interpret.
## Defining Goals
### What is the Objective of Your A/B Test?
Your objective should align with your business priorities. The most common objectives for A/B testing include:
* **Increasing Conversion Rates:** Encourage more visitors to take specific actions, like signing up or making a purchase.
* **Reducing Bounce Rates:** Keep users engaged on the site for longer.
* **Improving User Engagement:** Increase interactions with key elements like videos, forms, or CTAs.
### Broader Objectives
While A/B testing is commonly used to drive revenue, it can also help with:
* Reducing opt-out rates
* Increasing upsells
* Improving after-sales service engagement
A/B testing isn't just for revenue growth—it can help reduce costs, too.
See more in our [user stories.](/Documentation/Examples)
## Measuring Success
### How Will You Measure Success?
The success of your A/B test depends on defining the right **Key Performance Indicators (KPIs)** that reflect your test objectives:
* **Conversion Rate (CR):** The percentage of users completing the desired action.
* **Click-Through Rate (CTR):** The ratio of users who clicked on a specific link or CTA.
* **Bounce Rate:** The percentage of visitors who leave without engaging.
Choosing the right success metrics will allow you to make informed decisions about the outcome of your test.
For more on defining success events, visit our [success event page.](/how-to/success-event)
# Overview & Concepts
Source: https://docs.gleef.eu/ab-testing/best-practices/overview-concepts
Understand the core principles of A/B testing and how it can drive website performance.
A/B testing is a powerful tool for improving website performance. It involves comparing two or more versions of a webpage to determine which variation performs better.
## Key Concepts
### Baseline
The baseline is the default version of the element you're experimenting, serving as the reference point against which other variations are measured.
You might keep the baseline unchanged to assess whether the experiment you're running will yeild any improvements. That is why Gleef does not enables baseline removal.
### Variation
A variation is an alternate version of the baseline. In an A/B test, you typically experiment one or more variations to see if they outperform the baseline.
We highly recommend not to make more than 1 variation at a time, meaning the baseline and another variation. This is to ensure that the results are statistically significant quickly and accurately.
Therefore, if you want to experiment more than 1 variation, you should experiment each variation at a time, and whenever the experiment becomes significant, launch a new experiment with the baseline defined as the success of the previous experiment.
### Control
The control group refers to the users who are shown the baseline version, allowing you to compare their behavior against those exposed to the variations. These visitors see the baseline.
You can conduct A/A test to make sure that everything is working well on your website.
### A/A test
A/A test are conducted to make sure current experimentations are reliable. The idea is to run an experiment without any change, meaning that the 2 variations will be the same. You should not see any difference in the results.
## Why A/B Test?
A/B testing helps companies optimize user engagement, conversion rates, and overall business performance by making data-driven decisions. Typical objectives include:
* Increasing click-through rates (CTRs)
* Improving conversion rates
* Reducing bounce rates
* Testing new headlines or CTA text
Netflix runs approximately 20 A/B tests per user at any given time!
Learn more at the [Netflix Technology Blog](https://netflixtechblog.medium.com)
## Benefits of A/B Testing
1. **Data-Driven Decisions:** Base your changes on actual data, rather than assumptions.
2. **Improved User Engagement:** Test different elements to see which engages users the most.
3. **Optimized Conversion Rates:** Identify changes that can increase sales or signups.
4. **Reduced Risk:** Test small changes before rolling them out widely.
# Running Experiments
Source: https://docs.gleef.eu/ab-testing/best-practices/running-experiments
Running your A/B test correctly ensures that you gather reliable, actionable data.
## Duration of Your A/B Test
### How Long Should You Run Your Experiment?
Run your test for a duration that allows you to collect enough data to reach statistical significance. Typically, you should aim for at least 1-2 weeks, depending on your traffic volume.
By default, to get an experiment to be significant, you'll need to run it for at least 14 days. You can [contact us](mailto:support@gleef.eu) to change this parameter.
### Can You Stop Early?
Avoid stopping your experiments too early. Even if you see promising results after a few days, stopping before reaching significance can lead to unreliable conclusions. Always wait for the experiment to complete its cycle.
The longer your experiment, the more reliable the results will be. Consider adjusting your significance parameters by contacting us [contact us](mailto:support@gleef.eu). By default, Gleef recommand the following metrics to be significant:
* Duration: 14 days
* Confidence: 95%
* Sample size: 1000 visitors per variation (including the baseline)
* Success events: 50 success events per variation (including the baseline)
## Avoiding Bias in Your Test
### How to Avoid Bias
* **Timing:** Run the test for more than a week to account for variations in traffic patterns (e.g., weekdays vs. weekends).
* **Consistent Conditions:** Ensure that no changes are made to the website during the test, as this could influence the results.
* **Overlapping Tests:** Avoid running multiple experiments on the same page simultaneously, as this can skew the results.
Gleef helps you manage multiple experiments on the same page. Learn how [here.](/Q\&A/QA#running-multiple-experiments-on-the-same-page)
## Running Simultaneous Experiments
You can run multiple A/B tests across different pages simultaneously. However, to ensure the accuracy of each test, avoid running overlapping tests on the same page.
# Introduction
Source: https://docs.gleef.eu/ab-testing/getting-started/introduction
Set up A/B testing in a few minutes
## What is Gleef?
### Gleef enables A/B testing on wording, in 10 clics, without any developers.
Gleef is a powerful and easy-to-use Chrome extension for A/B testing website wording. It allows you to experiment different text variations to identify which ones improve user engagement and conversion rates.
## Purpose
Gleef enables marketers and product managers to make data-driven wording decisions by testing and optimizing website text.
Its intuitive interface and real-time results make the A/B testing process straightforward and effective.
## Key Features
* **Easy integration:**
* Quick installation of the Chrome extension.
* Simple setup with a single JavaScript snippet, installed once and for all.
* **User-friendly interface:**
* Intuitive dashboard for managing experiments.
* Easy workflow for creating and analyzing tests.
* **Real-time results:**
* Live updates on text variant performance.
* Detailed analytics for impact measurement.
* **Linked wording:**
* If there are multiple same wording on a page, all will be tested at once
## System Requirements
Gleef works on every stack & technology
* **Browser requirement:**
* Latest version of Google Chrome for Gleef admins at your company.
* Any mobile or desktop browser for visitors.
* **User requirement:**
* Basic understanding of A/B testing.
## Benefits of Using Gleef
1. **Eliminate unnecessary developer tasks:**
* Reduce the need for manual text updates across different environments.
* Streamline text changes without interrupting development workflows.
2. **Data-driven testing and decision making for Marketing and Product success:**
* Save time and resources by choosing testing over debating in decision-making processes.
* Consistently boost conversion rates with undisputable data.
3. **No code:**
* No technical expertise or data analysis experience required.
* Directly live on the product, without needing developers.
* Direct preview to see impact of change.
4. **Plug & play:**
* Very easy to use, without any specific skills needed.
* Easy management of the tests and results.
* Launching a test takes less than 20 seconds.
## Setting up Gleef
Contact Gleef to join the beta program
Variation display and event management rely on less than 20 lines of code
## Gleef's interaction with your page
Experiments have no impact on the loading time of your page
Data privacy is key to Gleef: more information about Gleef's GDPR compliance here
# Quickstart
Source: https://docs.gleef.eu/ab-testing/getting-started/quickstart
Set up A/B testing in a few minutes
## Overview
This section will guide you through the process of integrating Gleef into your website and starting your first A/B testing experiment on wording.
Our snippet needs to be integrated to your website to allow wording experiments.
The script tag should be integrated in the \<`head`> of all pages of your website for Gleef to track and manage success events.
```html theme={null}
```
This may vary if you want to avoid flickering. To learn more about flickering, click [here](./Q\&A/flickering).
Gleef manages access to the extension. You need to make an account request before using Gleef.
You can only request an account if your company is already a Gleef customer. To become a customer, email us at: [contact@gleef.eu](mailto:contact@gleef.eu)
In the registration email from Gleef, you will find the link to download the extension.
You can also find it here: [Gleef extension](https://gleef.eu/extension)
Once you log in the extension, you can start creating and managing (start, pause, delete, etc.) experiments.
# Use cases
Source: https://docs.gleef.eu/ab-testing/getting-started/use-cases
Gleef's users results
## Use case #1: Using Gleef to Increase Conversion Rates
+97% CTR by changing a single CTA on the landing page
### Scenario
A loan company used Gleef to A/B test different call-to-action (CTA) buttons on their website with the goal of increasing the conversion rate for loan applications. They tested three variations to determine which wording was most effective in encouraging users to start the loan application process.
### Initial Wording
The original CTA button text was “Apply for a loan”.
### Hypothesis
The company hypothesized that changing the wording on the CTA button would influence user behavior and conversion rates.
### A/B Test Setup
1. **Variant A (Baseline Text):**
* "Apply for a loan"
2. **Variant B (New Text):**
* "Get started"
3. **Variant C (New Text):**
* "Simulate your loan"
### Experiment
Using Gleef, the loan company set up an A/B test with the three CTA button variants. They measured the conversion rate, which was the percentage of visitors who initiated the loan application process.
### Results
* **Variant A (Apply for a loan):** Conversion rate is used as the baseline.
* **Variant B (Get started):** Conversion rate increased by 7%.
* **Variant C (Simulate your loan):** Conversion rate decreased by 6%.
### Conclusion
Against the initial hypothesis, the simple and direct wording "Get started" performed significantly better, resulting in a 7% increase in the conversion rate. Conversely, "Simulate your loan" led to a 6% decrease in the conversion rate. The company was surprised by the substantial positive impact of the shorter, more action-oriented text.
### Action
Based on these results, the loan company decided to replace the original CTA button text with "Get started" across their website. Additionally, they planned to use Gleef for further A/B testing on other elements to continue optimizing their conversion rates.
## Use case #2: Using Gleef to Reduce After-Sales Questions
Reducing by more than 50% after-sales requests
### Scenario
An e-commerce client specializing in outdoor equipment saved valuable support resources using Gleef to A/B test content on their FAQ page. Their primary objective was to clear up customer confusion and cut down the volume of after-sales support queries by enhancing the clarity and comprehensiveness of product care instructions.
### Initial Wording
The original FAQ page contained a sparse "Product Care Instructions" section, which included the text: "To ensure the longevity of your product, follow the care instructions provided."
### Hypothesis
The client deduced that enriching the FAQ with in-depth, specific product care guidelines would empower customers and preemptively address potential support queries related to product maintenance.
### A/B Test Setup
1. **Variant A (Original Text):**
* "To ensure the longevity of your product, follow the care instructions provided."
2. **Variant B (New Text):**
* "For optimal equipment performance, clean with mild soap and water after each use and store in a dry place. Visit our Care Guide for detailed tips."
### Experiment
Using Gleef, the client conducted an A/B test to assess the effectiveness of these two variants. Performance was measured by monitoring the number of clicks on the "Contact Support" button and tracking the volume of support tickets specifically related to product care.
### Results
* **Variant A:** Generated over 150 support tickets related to product care each week.
* **Variant B:** Reduced support tickets related to product care to approximately 100 each week.
### Conclusion
The revised wording (Variant B) led to a substantial 33% reduction in support tickets. The detailed instructions provided significantly more value to customers, straightening out ambiguity and diminishing the need they served as Reword to reach out to customer support. This profound impact wasn't anticipated from what initially seemed like a minor modification in diction.
### Action
Encouraged by the surprising and positive results, the client decided to implement the new, more informative wording across their entire FAQ section. They also plan to conduct further A/B tests on other FAQ topics to continually enhance the clarity and effectiveness of their customer support content. By doing so, they aim to reduce customer confusion even further and improve overall support efficiency. With Gleef, they’re seeing just how powerful detailed, clear communication can be for their business satisfaction.
# Create an Experiment
Source: https://docs.gleef.eu/ab-testing/how-to/create
Set up your experiment and gather actionable insights about your wording.
Setting up your first experiment is quick and easy, taking less than 5 minutes.
Ensure you open Gleef's extension on the page where you want to run the experiment.
Your account may be tied to the current URL domain for creating experiments. If you wish to experiment on a different domain, please [contact us](mailto:support@gleef.eu).
If you're on the wrong page, navigate to the desired one before opening the extension.
If you're not already logged in, you will be prompted to enter your credentials.
If you don't have credentials, you can create a demo account ([learn how](/how-to/signup)) or [contact us](mailto:support@gleef.eu) to validate a paid account.
Click the 'New Experiment' button to begin.
This will create an experiment on the current page. If you want to set up an experiment on another page, navigate there before opening Gleef.
Select the text on your website that you wish to test. If you're unable to select the wording, it may be because it's part of an image or not within standard HTML text tags.
Refer to our [FAQ](TK) for more information.
When you choose a specific element, all identical elements on the page will be included in the experiment to maintain consistency. This means all matching components will be affected.
You can select multiple elements on the page. [Learn how](TK).
Create the variations you want to test. While there's no limit on the number of variations in Gleef, we recommend no more than 2 variations (plus the baseline) for optimal results ([learn why](TK)).
Refer to our [best practices](/Q\&A/best-practices) for guidance on setting up effective experiments.
More variations will extend the time needed to achieve statistically significant results. [Learn more](TK).
The 'baseline' represents the original text and cannot be removed, as it serves as the control in your A/B test.
Gleef allows you to define two types of success events in line with [A/B testing best practices](TK):
1. **Click on the Call-to-Action (CTA):**\
For tests involving a CTA button, you can set the success event as a click. This only works for clickable CTA text, and the first click will be tracked as the success event tied to the variation shown.
Currently, there's no direct option to select a CTA separate from the tested text, but there is a workaround. [Learn how](TK).
2. **Specific URL Visit:**\
Define a success event as reaching a specific URL (e.g., a 'thank you' or 'purchase confirmation' page). This is useful for testing headlines or other non-CTA elements.
See our [success events guide](/how-to/success-event) for more information.
Name your experiment to easily locate it in your Gleef dashboard. We recommend following your company's naming conventions.
A suggested naming format is "**Element in test** – **Page of the test**." Example:
* **CTA 1 Landing:** For a CTA experiment on the landing page, such as the primary 'Shop Now' button.
* **Headline About:** For a headline test on the About page, with the success event set to a 'Contact Us' page.
Congratulations! You're ready to either save your experiment as a draft or launch it immediately, depending on your needs.
# Install Gleef
Source: https://docs.gleef.eu/ab-testing/how-to/install
Install Gleef Chrome extension and integrate our JavaScript snippet easily.
Gleef is natively available on every web technology.
## Installation
Follow these simple steps to install Gleef and get it working on your website.
First, [download our Chrome extension](http://get.gleef.eu) to get started with Gleef.
Once the extension is installed, integrate the following JavaScript snippet into the `` section of all pages on your website:
```html theme={null}
```
Gleef can be integrated in any web technology. See [our integration guide](/integrations) to know how to integrate Gleef with your specific platform. If you don't find the integration needed, [contact us](mailto:support@gleef.eu).
This step is crucial to enable Gleef's functionalities on your website.
# Monitor an Experiment
Source: https://docs.gleef.eu/ab-testing/how-to/monitor
Monitor the performance of your experiments in real-time and analyze the results.
Managing your experiments is straightforward with Gleef's real-time monitoring features.
## Get an Overview of All Your Experiments
When you open Gleef on your website, you can view all created experiments (excluding deleted ones) across all pages. You can easily filter experiments to show only those on the current page.
Experiments are automatically sorted by:
* Running experiments at the top
* Creation date in descending order, with the most recent on top
## Experiment Details
Clicking on a specific experiment shows detailed information, including its statistical significance. Refer to [our detailed section](TK) if you have questions about significance.
## Start/Pause an Experiment
```mermaid theme={null}
flowchart LR
A[Drafted] --> |Start Experiment| SP[Experiment Running]
subgraph SP
direction TB
B[Paused] --> |Resume| C[In Progress]
C[In Progress] --> |Pause| B[Paused]
end
```
An experiment can be in one of three different states:
1. **`Draft`:**
When you create an experiment but choose not to launch it immediately, it is saved as a draft. This means the experiment has never been launched.
2. **`Running`:**
When an experiment is running, visitors will see different variations associated with the experiment when they visit the linked URL.
3. **`Paused`:**
You can pause an experiment at any time. When an experiment is paused, it can be manually restarted whenever you choose. While paused, the experiment stops running, and all visitors will see the default text for that specific experiment.
Frequent switching between running and paused states can introduce bias into your experiment results. Please refer to our A/B testing [best practices](TK) for more information.
### Drafted Experiment
When you create an experiment, you can save it as a draft instead of running it immediately. A `Draft` experiment has not run and, therefore, contains no data. You can start it whenever you're ready.
Ensure the page hasn't changed before starting a draft experiment, as changes may affect the relevance of the targeted wording.
### Paused Experiment
A `Paused` experiment was previously running but is now stopped. Visitors will only see the baseline. The experiment retains any data gathered before it was paused. You can restart it at any time to resume data collection, which will be added to the previous results.
Paused experiments may still display variations for visitors that have already seen one to maintain consistency, but new visitors will only see the baseline. Learn more in our [FAQ](TK).
### Running Experiment
A running experiment can be paused at any time, stopping its display on your website. You can resume it later to continue collecting data.
Reasons to pause an experiment:
* The wording under experiment has been removed from the page.
* You are aware of an event that might bias the experiment results.
Avoid pausing an experiment for long periods, as it may introduce bias and affect its outcome.
## Finish the Experiment
Currently, there is no `Finish` status. To stop an experiment, pause it. Whether or not the experiment is statistically significant, you can analyze the results.
Stopping an experiment before it reaches statistical significance may result in inconclusive data.
You control the duration of your experiments, even if they have already reached statistical significance.
## Delete an Experiment
You can delete an experiment at any time, but this action is irreversible.
## Analyze Results
### Statistical Significance
Gleef provides clear insights into whether your experiment is statistically significant. Beyond p-value calculation, we provide three additional key metrics:
* Experiment duration
* Number of visits (per variation)
* Number of success events (per variation)
These metrics will guide your decisions on wording choices. Visit our [significance and results analysis](TK) section for more details.
### Edit the Name of the Experiment
You can edit the `Test name` at any time, regardless of the experiment’s status (`Draft`, `In Progress`, `Paused`).
Simply make the change and save it.
To avoid introducing bias, the only parameter you can change after saving the experiment is the name. Learn more in our [FAQ](/Q\&A/QA).
# Get an account
Source: https://docs.gleef.eu/ab-testing/how-to/signup
Create your account, try Gleef for free
You can now create a demo account and try Gleef for free. [Try it now](http://get.gleef.eu)
## Sign Up
Follow these steps to quickly set up a demo account if your company hasn't registered yet.
Start by [downloading our Chrome extension](http://get.gleef.eu).
Sign up using either your email or Google account to register in just a few seconds.
After registration, you'll need to confirm your email to activate your account.
Once logged into the extension, you'll be prompted to define your company and its domain. Ensure that you use the domain you'd like to experiment with.
If the domain is already registered by another user, you will not be able to create an account. Please [contact us](mailto:support@gleef.eu) if you have any questions.
If you have any questions regarding your company's domain usage and how we manage multiple users, please refer to our [Q\&A](TK).
You're all set to start using Gleef as a demo user. You can create experiments, but they will remain drafts and won't affect your website until you upgrade your account.
Want your experiments to go live? You can upgrade your account at any time by [contacting us](mailto:support@gleef.eu).
# Sucess events
Source: https://docs.gleef.eu/ab-testing/how-to/success-event
Success events are essential for determining which variation performs better in an A/B test.
## Success events definitions
### What is a success event?
A success event in A/B testing is a predefined action or metric that determines the effectiveness of an experiment. It represents the primary outcome you want to measure to assess whether your variations outperform the control. Success events should be closely aligned with your business goals and objectives.
**Example:**
For an e-commerce website, a success event could be the completion of a purchase. Here, you would track the conversion rate, which is the percentage of visitors who complete a purchase. Other examples of success events include:
* **Clicking on a high-impact call-to-action (CTA) button** – such as "Add to Cart" or "Subscribe Now".
* **Registering for a newsletter signup** – showcasing visitor interest and potential future engagement.
* **Downloading a valuable resource or document** – such as an e-book, white paper, or case study.
* **Completing an inquiry or lead generation form** – such as requesting a demo or filling out a contact form.
* **Engaging with key interactive elements** – such as a live chat service or survey completion.
Each of these actions provides valuable insights into user behavior and helps you determine which wording or variation drives better results.
### How many success events can I define with Gleef?
Currently, you can specify one among two success event for each experiment you conduct.
1. **Click on an item (CTA)** - Not recommended
By defining the success event as a click on the targeted CTA, we track the first time a visitor clicks the button, and then attribute that event to the specific variation being shown (if applicable).
This kind of success event is used to calculate the CtR (Click through Rate) of your call to action. It is not recommended as it can be misleading if the visitor didn't actually complete the desired action, or directly quit the page.
This option has the following limitations:
* It requires the element you're experimenting to be clickable
* If multiple elements are clickable, only one of them - the one you're experimenting will be the success event, unless there are multiple likewise elements.
* If you want to define the success event as a click on another item - not the one you're currently experimenting, you can define a multi-select experiment,
firstly selecting the element you want to define as the success event, and setting its variation equals to the baseline, and then selecting the other element you really want to experiment.
2. **Specific URL Page** - Highly recommended
You can choose any URL that represents a meaningful outcome for your experiment. URLs that signal a successful event can be 'thank you' or 'purchase completed' pages.
We highly recommend to use this kind of success event as long as it reflects a real impact on your business, and not a click that can be misleading if the visitor didn't actually complete the desired action, or directly quit the page.
# Add Gleef to Bubble
Source: https://docs.gleef.eu/ab-testing/integrations/bubble
Get Gleef running in a few steps
This section will guide you through the process of integrating Gleef into your Bubble store and starting your first A/B testing experiment on wording.
Open the app you're planning to integrate Gleef on, through your Bubble dashboard.
Once the app is opened, go to 'Settings', then 'SEO/metatags', scroll down up to the section 'Script/meta tags in header'.
On top of the container, before anyother line of code, copy paste the followying code:
```liquid theme={null}
```
This code will allow your Bubble store to display and track Gleef experiments.
Once you've added the code, click on the Save button in the upper right corner.
You're all set! Log into the Chrome Extension, and start creating and managing experiments on your Bubble app.
See also : [Create an experiment](../how-to/create)
# Add Gleef to Framer
Source: https://docs.gleef.eu/ab-testing/integrations/framer
Get Gleef running in a few steps
This section will guide you through the process of integrating Gleef into your Framer store and starting your first A/B testing experiment on wording.
Go to the 'Settings' of your website, then 'General'.
Scroll down to the section 'Start of head tag', in the 'Custom Code' section.
Copy paste the following line of code, making sure it's the first one in this section:
```liquid theme={null}
```
This code will allow your Framer store to display and track Gleef experiments.
Once you've added the code, click on the Save button in the upper right corner.
You're all set! Log into the Chrome Extension, and start creating and managing experiments on your Framer website.
See also : [Create an experiment](../how-to/create)
# Add Gleef to Shopify
Source: https://docs.gleef.eu/ab-testing/integrations/shopify
Get Gleef running in a few steps
This section will guide you through the process of integrating Gleef into your Shopify store and starting your first A/B testing experiment on wording.
Log in to your Shopify admin panel and navigate to Online Store -> Themes.
Find your current theme and click Actions -> Edit code.
You should see a list of template files in the left sidebar.
In the left sidebar, locate and click on the `theme.liquid` file under the Layout section.
Find the closing `` tag in the file. Before this tag, and before other scripts, paste the following code:
```liquid theme={null}
```
This code will allow your Shopify store to display and track Gleef experiments.
Once you've added the code, click on the Save button in the upper right corner.
You're all set! Log into the Chrome Extension, and start creating and managing experiments on your Shopify website.
See also : [Create an experiment](../how-to/create)
# Add Gleef to Webflow
Source: https://docs.gleef.eu/ab-testing/integrations/webflow
Get Gleef running in a few steps
This section will guide you through the process of integrating Gleef into your website and starting your first A/B testing experiment on wording.
Once in your [Webflow dashboard](https://webflow.com/dashboard), click the '...' on the website you would like to integrate Gleef, and then select the Settings.
You might go to the 'Custom code' tab then, in order to copy-paste our code within the window in the center.
The following code will allow your website to display and track Gleef experiments.
```liquid theme={null}
';
```
Once you're done, click on the Save button.
You're done! Log into the Chrome Extension, and start creating and managing experiments.
See also : [Create an experiment](../how-to/create)
# Add Gleef to Wix
Source: https://docs.gleef.eu/ab-testing/integrations/wix
Get Gleef running in a few steps
This section will guide you through the process of integrating Gleef into your Wix store and starting your first A/B testing experiment on wording.
Go to Settings in your site's dashboard, then click on Custom Code in the Advanced section.
Click on + Add Custom Code at the top right, then paste our code snippet in the text box
```liquid theme={null}
```
Enter a name for your code: 'Gleef snippet', then select the option under Add Code to Pages -> All pages in order to make sure Gleef's tracking is available on your whole website.
Finally, choose to place your code in the head, under 'Place Code in' and validate by clicking on 'Apply'.
You're all set! Log into the Chrome Extension, and start creating and managing experiments on your Wix website.
See also : [Create an experiment](../how-to/create)
# Add Gleef to WordPress
Source: https://docs.gleef.eu/ab-testing/integrations/wordpress
Get Gleef running in a few steps
This section will guide you through the process of integrating Gleef into your website and starting your first A/B testing experiment on wording.
In your WordPress dashboard, select the Appearance menu, then Theme Editor.
You might need to select your theme in the upper right dropdown.
Then, select the file `Theme Functions (functions.php)` in the right panel.
You should see some code in the main window.
Copy/paste this code within the window in the center.
The following code will allow your website to display and track Gleef experiments.
```php theme={null}
function gleef_script() {
echo '
}
add_action("wp_head", "gleef_script", 0);
```
Once you're done, click on the Update File button.
You're done! Log into the Chrome Extension, and start creating and managing experiments.
See also : [Create an experiment](../how-to/create)
# Frequently Asked Questions
Source: https://docs.gleef.eu/ab-testing/support/QA
Find answers to our most frequently asked questions below. If you need further assistance, our support team is ready to help at support@gleef.eu.
## General Questions
### What is Gleef?
Gleef is a Chrome extension designed for A/B testing website wording, helping to improve user engagement and conversion rates. It focuses exclusively on testing text elements such as headlines, CTAs, and descriptions.
### What can I experiment with using Gleef?
You can run A/B tests on any text element on your website, including:
* **Headlines**
* **Call-to-action buttons**
* **Product descriptions**
However, text within images or videos cannot be tested. Ensure that your text elements are implemented using standard web development practices.
### How does Gleef work?
Gleef allows you to create, manage, and analyze A/B tests without developer involvement. By using a JavaScript overlay, the tool dynamically adjusts the text on your website, making it easy to test different variations.
### Who can use Gleef?
Gleef is ideal for:
* **Marketers**
* **Product managers**
* **Developers**
* **Website optimization teams**
Anyone looking to improve website engagement and conversion through wording changes can benefit from Gleef.
***
## Installation and Setup
### How do I install the Gleef Chrome extension?
To install the Gleef Chrome extension:
1. Visit the [Chrome Web Store](https://chromewebstore.google.com/detail/gleef-alpha/dhaimaljdicccaplppipfiikonpdgeelify/).
2. Search for `Gleef` and click **Add to Chrome**.
3. Once installed, launch the extension from the browser toolbar.
### Are there specific requirements for installing Gleef?
Yes, to install and use Gleef, you need:
1. **Google Chrome**: The latest version of Chrome is required.
2. **Website Access**: You need the ability to add custom JavaScript to your website’s code to run live experiments.
### How do I create a Gleef account?
You can create a **demo account** directly from the Chrome extension. The demo account allows you to save experiments as drafts. For a full-featured account, [contact us](mailto:support@gleef.eu) to upgrade.
### How do I add the Gleef JavaScript snippet to my website?
After signing up, you’ll be provided with a JavaScript snippet. Add this snippet to the `
` section of your website to enable event tracking and A/B testing.
Ensure the JavaScript tag is present on all pages where you want to run experiments.
***
## Running Experiments
### Why can't I remove the baseline text from variations?
The baseline text is your control and serves as the benchmark for comparison with other variations. Removing it would prevent accurate performance measurement.
### How do I avoid flickering when running experiments?
Flickering occurs when the original content briefly appears before the variation is loaded. To prevent this:
* **Ensure the Gleef JavaScript snippet is placed in the `` section** of your website.
* **Load the script asynchronously** and use a pre-loader to hide the page until the variation is ready.
### Running multiple experiments on the same page
Gleef allows multiple experiments to run simultaneously on different pages without any interference. However, running multiple experiments on the same page may extend the time required to reach statistical significance. Visitors will be randomly assigned to a single experiment to avoid bias.
### How long should I run my experiments?
Experiments should run long enough to gather sufficient data to reach statistical significance. As a general rule, aim for at least **two weeks** of continuous testing, especially if your page traffic is moderate.
***
## Troubleshooting and Support
### Does the Gleef extension always work?
The extension will work as long as the correct JavaScript snippet is installed on your website. This enables real-time A/B tests without issues.
### What happens if Gleef is down?
In rare cases where Gleef is down, your website will continue to function normally, but your experiments will not run, and visitors will see the baseline content. You won’t be able to access the Gleef dashboard until services are restored. Visitors and experiment statistics will not be collected during this time.
### How do I invite team members to join Gleef?
Currently, only one user per domain is allowed. You can share your account credentials with colleagues if necessary. We are working on a feature to enable multiple users for a single domain.
***
## Best Practices
### How do I avoid interference when running multiple experiments?
To avoid interference when running multiple tests on the same page:
* **Run one experiment at a time** to ensure quicker statistical significance.
* **Random assignment**: If running multiple tests on the same page is necessary, Gleef randomly assigns each visitor to only one active experiment.
### Why should I prioritize testing high-impact elements?
Focus on testing text elements with the highest potential to improve user behavior, such as:
* **Headlines**: Drive more attention and clicks.
* **CTAs**: Boost conversion rates.
* **Product descriptions**: Enhance product understanding and encourage action.
Small changes to these elements can produce significant improvements in overall performance.
### What should I do if my test reaches significance early?
If your test reaches statistical significance before the scheduled end date, continue running the experiment for a few more days to verify the results and account for fluctuations in user behavior.
***
## Pricing and Plans
### How do I know which plan my company is on?
We currently offer a single unlimited plan designed for early adopters. This plan allows full access to all Gleef features with no restrictions on the number of experiments or users.
### Can I get a free trial?
Yes, we offer an **unlimited demo mode** that allows you to experiment without using our JavaScript snippet. Follow these steps to start:
Download our Chrome extension from [the Chrome store](http://get.gleef.eu).
Signup using your email or Google account.
Validate your account and register your domain name.
No need to integrate the JavaScript snippet to use demo mode!
***
For any additional questions or support, feel free to [contact us](mailto:support@gleef.eu).
# Running A/B Tests
Source: https://docs.gleef.eu/ab-testing/support/best-practices
Also read our [best practices](/best-practices)
A/B testing wording can dramatically enhance user engagement and conversion rates. Tech-savvy companies routinely run thousands of A/B tests annually to optimize their user experience and conversions.
## Table of Contents
* [Creating Variations](#creating-variations)
* [Running Experiments](#running-experiments)
* [Advanced Experiments](#advanced-experiments)
* [Analyzing Results](#analyzing-results)
* [Best Practices FAQ](#best-practices-faq)
## Creating Variations
### Can I remove the default text?
No. Retain the default text as the baseline in your experiment. This acts as the control for evaluating the performance of other variations, ensuring accurate comparisons.
### How many variations should I experiment with?
Limit your variations to two or three to keep the experiment manageable and achieve statistical significance without requiring a massive sample size.
You'll need around 7,000 users per variation to detect a 1% change in performance relative to your baseline. Learn more about [statistical significance here.](/Q\&A/statistics-data#statistical-significance)
### What kind of wording should I experiment with?
Focus on high-impact text elements:
* **Headlines**
* **Call-to-Action (CTA) buttons**
* **Product descriptions**
Even small wording tweaks in these areas can drive significant improvements in user engagement and conversions.
### Why can't I run UI experiments with Gleef?
Gleef is focused on A/B testing text, not user interface elements. UI tests require different approaches and should be handled separately. Gleef aims to keep A/B testing easy, no-code, and focused on wording without altering your website's structure.
Our future roadmap includes assisting you in selecting the right words with even more precision.
***
## Running Experiments
### How long should I run my experiments?
Run your tests until you achieve statistical significance. However, we recommend not running an experiment for more than 2 months to avoid bias. For pages with sufficient traffic, you should reach significance within a few days. However, always run the experiment for at least 2 weeks to ensure reliable results.
You can adjust these metrics by [contacting us](mailto:support@gleef.eu).
### How do you ensure your experiments are not biased?
* Run the test for at least two weeks to account for external events or seasonal trends.
* Avoid making changes to the page while the test is active.
* Don’t run multiple overlapping experiments on the same page, as this could skew results. Each experiment should be isolated to a specific section of your website.
Don't worry, Gleef also supports managing multiple experiments on the same page. Learn more [here](TK).
### How many experiments can run at the same time?
You can run unlimited experiments across different pages, but avoid running multiple overlapping experiments on the same page. This ensures that the changes being tested are the only variables impacting user behavior.
Gleef supports multiple experiments on a page, but it's best to avoid overlap. Learn how [here](TK).
***
## Advanced Experiments
### What is multi-select, and when should I use it?
With **multi-select**, you can run experiments on multiple elements simultaneously to ensure consistency across your page. Use this feature when testing multiple similar elements (e.g., multiple CTA buttons).
### How do I define a click on a specific CTA as a success?
If you're testing an element that isn’t clickable, use a multi-select experiment. Select the element to experiment on, and add the CTA you want to measure clicks for. Define the variations for your main element and keep the CTA as the baseline.
***
## Analyzing Results
### What statistical methods should you use?
Use **confidence intervals** and **p-values** to analyze the results. A p-value less than 0.05 indicates statistical significance. Aim for a **95% confidence level** to ensure your results are reliable.
Learn more about statistical calculations in our [statistics Q\&A.](/Q\&A/statistics-data)
### How do you interpret the results?
It’s not just about finding the winning variation. Ask yourself:
* Why did a certain variation perform better?
* What elements of user behavior did it influence?
Use these insights to optimize future experiments and refine your overall website strategy.
***
## Best Practices FAQ
### How do I avoid stopping tests too early?
Stopping a test prematurely, even with promising early results, can lead to inconclusive data. Always run your tests for at least two weeks or until you achieve statistical significance.
### What should I avoid when running A/B tests?
* **Don’t change multiple elements at once:** It makes it harder to attribute performance differences to specific changes.
* **Ensure sufficient traffic:** Without enough visitors, your test may never reach statistical significance.
* **Avoid overlapping tests:** Running multiple tests on the same page can introduce bias.
### How can I make the most of failed tests?
Even if a variation doesn't outperform the baseline, it still provides valuable insights. Analyze what didn’t work and use that knowledge to guide future experiments.
### Should I retest after making website changes?
Yes. If you’ve made major updates to your site, retest key experiments to ensure the changes haven’t impacted their effectiveness.
***
By following these best practices and strategies, you can run more effective A/B tests and make data-driven decisions that improve your website’s performance and user engagement.
# Flickering
Source: https://docs.gleef.eu/ab-testing/support/flickering
Flickering is a common issue with A/B testing tools. Learn how to fix it with Gleef.
## What is Flickering?
Flickering, or the **flicker effect**, occurs when the original version of a webpage is visible for a brief moment before the A/B test variation loads. This issue is common with JavaScript-based A/B testing tools. The flicker effect can confuse visitors or distort the results of your experiment by briefly showing the control version before applying the variation.
Flickering can happen for two main reasons:
1. **Script load timing:** The A/B testing script loads too late, causing the browser to display the original content before applying the variations. This is usually due to the way the A/B testing script is implemented on your page.
2. **Slow script execution:** The engine processing the variations takes too long to apply the changes, resulting in a delay between the initial page load and the variation display.
Gleef incorporates built-in mechanisms to minimize and prevent flickering.
***
## How to Avoid Flickering
### 1. **Check for Flickering in Gleef**
Before making any changes, test your implementation to see if flickering is an issue. The default implementation provided in [Quickstart](../quickstart) should be sufficient for most cases and designed to avoid flickering.
### 2. **Script Placement**
Ensure that the Gleef script is placed correctly in your website’s code. The script should be:
* **Placed in the `` section**: This ensures the script runs early, before the webpage renders, preventing flicker.
* **Not using a tag manager**: Tag managers can delay script execution, which might increase flickering risk.
If your script is placed incorrectly or loaded via a tag manager, adjust it to load in the `` section to prevent flickering.
### 3. **Load Script Asynchronously with Fallback**
To completely eliminate flickering, implement the script to load asynchronously and add a pre-loader to prevent the page from displaying until the variations are ready.
Here’s how you can do it:
* **Asynchronous Script Loading**: Load the A/B testing script asynchronously to ensure it doesn’t block other content from loading.
* **Pre-loader Implementation**: Add a snippet that keeps the page hidden until the variations are applied. This avoids any content flashing between the original and the variation.
* **Timeout Fallback**: In cases where Gleef’s services are unavailable, the page should load after a brief delay. This is a built-in feature of Gleef’s pre-loader, and we recommend keeping the default delay to avoid unnecessary load time.
***
## Best Practices to Prevent Flickering
### Why is script placement crucial?
Placing the Gleef script in the `` section ensures that it loads before any content is rendered on the page. This helps in applying the variation early and prevents visitors from seeing the original version of the page, thereby avoiding flicker.
### Can I use a tag manager for Gleef scripts?
It is not recommended to use a tag manager for loading the Gleef script. Tag managers can introduce a delay in script execution, increasing the likelihood of flickering. For best results, directly place the script in the `` of your webpage.
### What is the pre-loader and how does it work?
A pre-loader prevents the page from rendering until the variations are ready. This is done by keeping the webpage content hidden momentarily until the A/B test variation has been applied. This method avoids any visible flickering.
***
## Troubleshooting Flickering
### 1. **Flickering Still Occurs—What Now?**
If flickering persists despite following the recommendations:
* **Double-check script placement:** Ensure the Gleef script is within the `` section and loaded correctly.
* **Check for delays in execution:** Use developer tools to monitor the script loading time and ensure it's being executed before the page displays.
### 2. **What if Gleef's services are temporarily down?**
If Gleef's services are unavailable for any reason, the fallback mechanism ensures that your page loads after a set timeout. This prevents users from being stuck on a blank or partially loaded page.
By default, Gleef sets a reasonable delay for the timeout, but you can customize this delay if needed. However, we recommend sticking to the default setting for optimal performance.
```html theme={null}
```
If you followed all the recommendations but are still experiencing flickering, you can contact us at [support@gleef.eu](mailto:support@gleef.eu).
# Set Up
Source: https://docs.gleef.eu/ab-testing/support/installing
Installing Gleef requires minimal skills and time. Learn how to set up the Chrome extension and JavaScript snippet.
## Setting Up Gleef’s Interface
### How do I install the Gleef Chrome extension?
Installing the Gleef Chrome extension is simple:
* **Step 1:** Open the [Chrome Web Store](https://chromewebstore.google.com/detail/gleef-alpha/dhaimaljdicccaplppipfiikonpdgeelify/).
* **Step 2:** Search for `Gleef` and click **Add to Chrome**.
* **Step 3:** Once installed, you can open the extension from the browser toolbar.
Having trouble finding the extension? Use [this direct link](https://chromewebstore.google.com/detail/gleef-alpha/dhaimaljdicccaplppipfiikonpdgeelify/) to download it.
### Who can access the Gleef Chrome extension?
Anyone can install the extension, but only users with valid credentials and authorized accounts can create and manage experiments. Here’s what you need to know:
* **Open Access:** The extension can be downloaded and installed by anyone.
* **Editing Rights Required:** Only accounts with editing permissions for a specific website can run experiments. You won’t be able to modify or run tests on websites where you lack authorization.
This ensures only authorized personnel can make changes to your website.
### Are there specific requirements for installing Gleef?
Yes, to ensure smooth operation, make sure you meet the following requirements:
1. **Google Chrome:** You must use the latest version of Google Chrome.
2. **JavaScript Implementation:** You need access to your website’s code to add custom JavaScript, which is required for running experiments.
### How do I create a Gleef account?
Creating a **demo account** is simple and allows you to save drafts of experiments, though results won’t be live. Here’s how:
* Visit the signup page via the Chrome extension and follow the registration process.
* You can experiment in draft mode until you upgrade to a full account.
For a **real account**, contact us at [support@gleef.eu](mailto:support@gleef.eu), and we’ll help set it up so you can launch live experiments.
***
## Adding the Gleef JavaScript Snippet to My Website
### Why do I need to install the JavaScript snippet?
The JavaScript snippet enables event tracking, visitor segmentation, and running A/B tests on your website. Without this snippet, Gleef won’t be able to record or process experiments.
### How do I add the Gleef JavaScript snippet to my website?
Follow these steps:
1. **Copy the Snippet:** Once you sign up, Gleef will provide you with a unique JavaScript snippet.
2. **Paste Before `` Tag:** Insert the snippet into the HTML of your website before the closing `` tag on all pages where you want to run experiments.
Installing the Gleef JavaScript snippet is a one-time task. Ensure that this tag is present on all pages where you want to track events and run tests.
### What happens if the snippet is missing on a page?
If the snippet is missing from a page, Gleef will not be able to track user interactions or run tests on that page. Make sure it is present on every page where you want to track data.
***
## Best Practices for Setting Up Gleef
### How can I ensure smooth installation and usage?
1. **Double-check JavaScript Placement:** Ensure the Gleef JavaScript snippet is placed correctly on all relevant pages.
2. **Test the Setup:** After installing the extension and adding the JavaScript, run a quick test to ensure the experiments are working as expected.
3. **Keep Permissions in Mind:** Make sure that only authorized personnel have access to the Chrome extension on your website.
### Can I use a tag manager to install the Gleef snippet?
It’s possible to use a tag manager, but we recommend directly placing the snippet in your website’s code. Tag managers may delay the loading of the script, which could affect the performance of your experiments.
***
By following these steps, you’ll be ready to set up and run A/B tests with Gleef efficiently. If you encounter any issues, feel free to [contact us](mailto:support@gleef.eu) for support.
# Data & Statistics
Source: https://docs.gleef.eu/ab-testing/support/statistics-data
Understanding the mathematics behind Gleef
Statistical significance is based on various parameters. Gleef uses an automatic calculation to determine whether your results are significant.
For detailed insight on how this is done, refer to our [statistics Q\&A](/Q\&A/statistics-data/#common-questions-about-statistics).
Continue running the experiment until you achieve statistical significance. Ending the experiment prematurely could hinder the reliability of your results. Remember, significance is closely related to the magnitude of the conversion difference between variations.
For example, if you have a 10% conversion difference between two variations, your experiment may reach significance much faster than if the difference were only 1%.
All significance parameters can be customized for your company.
As a reminder, the confidence interval is calculated as follows:
| Confidence Level | Critical Value, 𝑍𝑐 |
| ---------------- | -------------------- |
| 99% | 2.575 |
| 95% | 2.33 |
| 90% | 1.645 |
| 80% | 1.28 |
The console displays the critical Z value and the p-value, if needed.
The following default values are recommended for a fully significant experiment:
* A confidence interval above or equal to 0.95
* At least 250 conversions per variation;
* At least 5,000 unique visitors per variation;
* At least 14 days of experimentation (two business cycles);
### Conversion & growth
At any time, you can access and monitor the results of your experiment, observing the conversion rates of each variation, and the improvement compared to the `baseline`, which represents the original wording being tested.
Hover over the conversion or growth metrics for detailed figures.
## Common Questions About Statistics
### What do I need to consider for a successful test?
1. **Traffic Volume:**
* High-traffic websites can quickly achieve the necessary sample sizes.
* Low-traffic websites may need to run tests for extended periods to gather sufficient data.
2. **Test Duration:**
* Ensure the test runs long enough to collect the necessary sample size for accurate results.
* Account for seasonal or time-based variations in traffic and user behavior.
3. **Multiple Variants:**
* If testing more than two variants, the sample size calculation is updated to maintain statistical validity.
### Do I have enough traffic on my website to run A/B tests?
You'll need approximately 7,448 visitors for each variant to detect a 1% difference with 95% confidence and 80% power.
Any website can run A/B tests; the key factor is how much time you allow the test to run without making changes to your website. It’s essential to ensure that your website has sufficient traffic to yield reliable and statistically significant results.
**Key Considerations:**
1. **Sample Size:**
* The number of visitors required to detect a meaningful difference between variants.
* Calculated using statistical formulas based on your desired confidence level and effect size.
2. **Effect Size:**
* The minimum detectable change in conversion rate or other metrics.
* Smaller effect sizes necessitate larger sample sizes.
3. **Confidence Level:**
* The probability that the test results are not due to random chance.
* Commonly used confidence levels are 95% and 99%.
**Statistical Formula for Sample Size**
The sample size `n` can be calculated using the following formula for two proportions:
`n` = $(2 * ($`Z_alpha`$/2 + $`Z_beta`$)^2 * $`p`$* (1 -$`p`$)) / ($`delta`$^2)$
Where:
* `Z_alpha/2` is the `Z-value` for the desired confidence level (e.g., 1.96 for 95% confidence).
* `Z_beta` is the `Z-value` for the desired power (e.g., 0.84 for 80% power).
* `p` is the estimated overall conversion rate.
* `delta` is the minimum detectable effect size (difference between conversion rates of the control and variant).
To detect a 1% difference with 95% confidence and 80% power, you would need approximately 7,448 visitors per variant.
**statistical-significance**
Assume you have the following:
* Overall conversion rate (`p`) = 5% (0.05)
* Desired confidence level = 95% (`Z-value` = 1.96)
* Desired power = 80% (`Z-value` = 0.84)
* Minimum detectable effect size (`delta`) = 1% (0.01)
Plugging these values into the formula:
`n` = $(2 * (1.96 + 0.84)^2 * 0.05 * 0.95) / 0.0001$
`n` = $7448$
You would need approximately 75 visitors for each variant to detect a 10% difference with 95% confidence and 80% power.
**statistical-significance**
Assume you have the following:
* Overall conversion rate (`p`) = 5% (0.05)
* Desired confidence level = 95% (`Z-value` = 1.96)
* Desired power = 80% (`Z-value` = 0.84)
* Minimum detectable effect size (`delta`) = 10% (0.1)
Plugging these values into the formula:
`n` = $(2 * (1.96 + 0.84)^2 * 0.05 * 0.95) / 0.01$
`n` = $74.48$
### What are some common examples of traffic and A/B testing statistics?
1. **High-traffic website:**
* **Daily visitors:** 50,000
* **Estimated conversion rate:** 5%
* **Desired effect size:** 1%
* **Sample size per variant:** 7,448
**Conclusion:** This test can be completed in a few days.
2. **Low-traffic website:**
* **Daily visitors:** 500
* **Estimated conversion rate:** 5%
* **Desired effect size:** 10%
* **Sample size per variant:** 75
**Conclusion:** This test can be completed within hours.
By ensuring you have enough traffic and using the correct calculations, you can run A/B tests that provide reliable and actionable insights.
### How are variations split among visitors?
Currently, variations are equally distributed among visitors. For example, if you have three different variations in an experiment (including the baseline), one out of every three visitors will randomly see each variation.
### How can I change the significance thresholds for my company?
You can contact the team at [support@gleef.eu](mailto:support@gleef.eu).
### How can I segment the traffic and determine who sees an experiment?
Currently, we do not provide built-in segmentation capabilities. However, you can conduct your own segmentation by directing visitors to different URLs and implementing experiments on each specific URL.
### Can I remove the default text?
To conduct effective A/B testing, you should keep the text you're experimenting with as the baseline. This serves as the reference point for all other variations tested.
### What kinds of success events can be set up?
We provide extensive information on success events on this page: [Success events](/Q\&A/success-event)
The type of success event depends on the experiment you're running:
1. **Running an experiment on a Call to Action (CTA)**
you can define the success event as either:
1. A click on the specific item.
2. A visit to a specific URL (a page view later in the funnel).
2. **Running an experiment on regular non-clickable text** you can specify the relevant visit to a specific URL (a page view later in the funnel).
## Retrieving Data from Experiments
We strive to provide all the essential information directly on your dashboard.
### How do I interpret the results of an A/B experiment?
Compare the performance metrics (e.g., conversion rates) of each variation against the control to determine the most effective copy. Gleef highlights the best-performing variation directly below the 'baseline', which represents the text you selected for the experiment.
### Does Gleef provide detailed statistical information on experiments?
We now display `p-value` and `Z-value` for all experiments, as well as extensive data points we use to compute significance.
We aim to deliver all necessary statistical data to provide a comprehensive overview of your experiments. Our intention is to keep Gleef smooth and easy to operate by avoiding information overload. However, if you need more detailed statistics, please contact us at [support@gleef.eu](mailto:support@gleef.eu), and we will be happy to provide additional information.
### Is it possible to download full experiment data?
While we currently do not offer a built-in option for downloading complete experiment data, we can send you a comprehensive data export file with all necessary details upon request. Simply email us at [support@gleef.eu](mailto:support@gleef.eu).
### How do I apply the best performing wording to my website?
Gleef does not currently offer the capability to directly implement changes on your website. Therefore, you will need to follow your internal processes to submit the wording changes based on the best-performing variation.
# Troubleshooting
Source: https://docs.gleef.eu/ab-testing/support/trouble-shooting
Solutions to common issues you might encounter while using Gleef
## Experiments
### My experiment seems to have stopped running
This could be due to several reasons:
1. **Someone may have paused the experiment.**
You can check the experiment status on your dashboard. If the experiment is marked as 'Paused', you can click on 'Restart the experiment'.
2. **The experiment was automatically paused by Gleef.**
Sometimes, Gleef may automatically pause an experiment. The primary reason for this could be the detection of an abnormal implementation.
This could be due to:
* **No variation shown:** Your test was still running, but no variation was displayed on your page because Gleef could not find the text to replace. This is mostly due to changes on your webpage since the experiment's implementation, making it difficult for Gleef to identify the targeted text.
You won't be able to change the experiment's target, as it may introduce bias. You can either reverse the changes on your website or launch a new experiment. Please refer to our [best practices](/Q\&A/best-practices).
* **No success events triggered:** Your success event is likely broken. This could be due to an incorrect URL or because the button being tracked has been changed or removed.
You won't be able to change the success event for your experiment, as it may introduce bias. You can either reverse the changes on your website or launch a new experiment. Please refer to our [best practices](/Q\&A/best-practices).
3. **Our snippet is no longer supported by your website.**
If our snippet has been removed from your website, or specific pages (due to reused elements not applied throughout the entire website), you will still see the experiments in your dashboard, but they will no longer be running. Ensure that our snippet is still active on your website.
### Why isn’t my experiment evolving anymore?
Refer to the previous section. This issue may occur because the text you are trying to test is no longer findable or has been altered.
### My experiment is still not significant; why?
Achieving statistical significance depends on various parameters and can require anywhere from a few hundred to hundreds of thousands of visitors. It is essential to review these parameters to understand what might be affecting your experiment's significance. For more details, please see our [statistical analysis guide](/Q\&A/statistics-data#statistical-significance).
### What happens if the text under an experiment is changed?
No worries, your website will continue functioning seamlessly! However, the experiment associated with that text will no longer run because Gleef won't be able to apply the variations on page load. Consequently, all visitors will see the default text as defined by your developers.
To restart the experiment, revert the changes made to the affected page and ensure the experiment is not paused.
Avoid making changes to a webpage during an experiment, as it can disrupt and bias the experiment.
For more information, please refer to our [best practices](/Q\&A/best-practices).
#### Why can't I select some text on my website?
The main reason could be that the text you're trying to select is not considered "text" in web development terminology. Here are some specific reasons:
* **Text embedded in an image:** If the text is embedded directly into an image, it is not considered text for SEO purposes, is not localized (requiring entire image localization), and is not responsive. We recommend asking your developers to rewrite this part of the page to display it as actual text.
* **Text within inappropriate HTML tags:** If the text is nested in code tags not meant to handle content directly, such as ``, the text may not be selectable. Gleef natively recognizes and supports standard HTML tags designed to handle content, such as:
* `
Bold text`
* `
Strong text`
* `
Italic text`
* `
Emphasized text`
* `
Underlined text`
* `
Deleted text`
* `
Inserted text`
* `
Highlighted text`
* `
Smaller text`
* `
Subscript text`
* `
Superscript text`
* `
Link text`
* `
Inline code`
* `
Preformatted text
`
* `
Blockquote text
`
* `
`
* `
- Ordered list item
`
* `
Heading x`
* `
Paragraph text
`
### Why can't I find one of my experiments anymore?
In rare cases, it is possible for an experiment to disappear from your dashboard. Please contact us at [support@gleef.eu](mailto:support@gleef.eu) so we can assist in re-integrating it.
### Why do visitors only see one experiment at a time when I've defined multiple experiments on the same page?
Running multiple A/B tests on the same page is generally discouraged, as outlined in our [best practices](/Q\&A/best-practices). However, if you choose to run different experiments on the same page, note that we only show one variation to a visitor at a time. This ensures consistency in our analysis and avoids any bias.
This means that a visitor will only be part of one A/B test and won't see variations from the other experiments. For example, if you are testing three different components on the same page, the visitor will only see a variation of one component while the other two will display their default text.
### What happens if I select a component to A/B test wording, but it’s shown more than once on the page?
When you define an experiment on a component’s wording, we assume you want to experiment on all instances of that component on the specific page. This means we will apply the experiment to all components that contain the specified wording and share the same code structure, ensuring that your page remains consistent.
## Gleef's Technology
### Is Gleef slowing down my website?
It's unusual, but it can happen. Gleef is an efficient, seamless JavaScript that should load in a few ms. We have even implemented measures to ensure no flickering occurs on your website.
If you are still experiencing loading issues, it might be related to how your website prioritizes content loading. Please email us at [support@gleef.eu](mailto:support@gleef.eu), and we will assist you in resolving this issue.
### Why do I still see live variations on my website after pausing an experiment?
This is expected behavior. We store the variation displayed to each visitor in their browser’s local storage for a period of one hour. This mechanism helps avoid repeated queries. This not only saves resources, but also ensures a smoother and faster user experience.
By doing this, we maintain consistency in what the users see, preventing flickering and latency issues that can arise from frequent database calls.
However, a consequence of this approach is that even if an experiment is paused, the stored variation remains active for the one hour period. This means that visitors, including yourself, will continue to see the same variation regardless of the experiment’s current status.
### Is Gleef GDPR compliant?
Yes, absolutely! We do not use cookies or non-anonymized data to run experiments. We store data only in the cache and local storage of the visitor's browser. This approach ensures no flickering due to cookie acceptance and complies with GDPR regulations. Rest assured, the only cookies we have are the ones we eat.
### Why do I always see the same variation on my website?
We store the variation a visitor sees in their local storage for one week. This means that on each page involved in an experiment, a visitor will see the same variation for an entire week, maintaining a consistent experience.
### What is the time limit for performing the success event?
We have set a time limit of 3 days for performing the success event. Currently, this limit cannot be changed, but this feature might become customizable in the near future.
## User Management
### Why can I open Gleef on any website but can't set up experiments?
You might be able to open Gleef's Chrome Extension on websites you don't manage. However, once logged in, you won't be able to set up any experiments on these sites because you are not authorized to do so. Rest assured, only users authorized by you will have access to your experiments and be able to interact with your website.
### How can I manage Gleef's users?
We do not currently offer in-app user management features. However, you can contact our support team directly to manage users at [support@gleef.eu](mailto:support@gleef.eu). Support can assist you with the following:
* Edit user credentials
* Add new users
* Delete user accounts
# gleef init
Source: https://docs.gleef.eu/cli/commands/init
Initialize Gleef in your project by detecting locale files and creating configuration
The `gleef init` command sets up Gleef in your project by guiding you through the configuration process and creating the necessary configuration file.
## Usage
```bash theme={null}
gleef init
```
## What it does
The `init` command performs several important setup tasks:
1. **Prompts for locale file patterns** using placeholder syntax (e.g., `{locale}`, `{feature}`)
2. **Validates your file patterns** by attempting to load locale files
3. **Fetches company locales** from your Gleef account
4. **Maps file/folder names** to company locales when needed
5. **Creates configuration** in `.gleef/config.json` with proper format options
6. **Sets up custom locale mappings** when file names don't match standard locale codes
## Placeholder Patterns
The command uses placeholder syntax to define file patterns:
* `{locale}` - **Required placeholder** for the locale identifier
* `{feature}` or `{namespace}` - Optional placeholders for organizing translations
### Supported File Formats
Gleef supports these localization file formats:
* `.json` - JSON localization files
* `.xml` - XML localization files
* `.yaml` / `.yml` - YAML localization files
* `.strings` - iOS strings files
### Pattern Examples
| Pattern | Matches | Use Case |
| ------------------------------------- | -------------------------------------------------------- | -------------------------- |
| `src/locales/{locale}.json` | `src/locales/en.json`, `src/locales/fr.json` | Simple locale files |
| `public/i18n/{locale}/{feature}.json` | `public/i18n/en/common.json`, `public/i18n/fr/auth.json` | Namespaced translations |
| `locales/{feature}.{locale}.json` | `locales/common.en.json`, `locales/auth.fr.json` | Feature-first organization |
## Interactive Setup Process
### Step 1: Enter Locale File Pattern
```bash theme={null}
$ gleef init
___ _ _____ _____ _____
/ ___| | | ____| ____| ___|
| | _| | | _| | _| | |_
| |_| | |___| |___| |___| _|
\____|_____|_____|_____|_|
Welcome to the Gleef configuration assistant
You will need your locale files path to continue, using the {locale} placeholder.
? What's your locale files path? › src/locales/{locale}.json
```
### Step 2: Locale Mapping (if needed)
If your file/folder names don't match your company locales:
```bash theme={null}
? Please assign one of your configured locale to this file/folder: en
fr-FR
en-US
es-ES
❯ Skip
```
### Step 3: Success
```bash theme={null}
✔ One pattern added successfully. You can add more in your config file.
src/locales/{locale}.json
Run `gleef push` to start pushing your translations
To customize nested/flat output per format, edit the formatOptions in .gleef/config.json
```
## Generated Configuration
After running `init`, you'll find a `.gleef/config.json` file in your project:
```json theme={null}
{
"localeFilePatterns": [
"src/locales/{locale}.json"
],
"formatOptions": {
"json": {
"nested": true
}
},
"customLocaleNames": {
"fr-FR": "french",
"de-DE": "german"
}
}
```
### Configuration Properties
| Property | Description |
| -------------------- | -------------------------------------------------------------------------------- |
| `localeFilePatterns` | Placeholder patterns matching your localization files using `{locale}` syntax |
| `formatOptions` | Output format settings for each file type (auto-detected based on your patterns) |
| `customLocaleNames` | Maps company locale codes to your file/folder names when they don't match |
## Configuration Examples by Technology
```json React/Next.js theme={null}
{
"localeFilePatterns": [
"public/locales/{locale}.json",
"src/locales/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
}
}
}
```
```json Vue/Nuxt.js theme={null}
{
"localeFilePatterns": [
"locales/{locale}.json",
"lang/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
}
}
}
```
```json Angular theme={null}
{
"localeFilePatterns": [
"src/assets/i18n/{locale}.json",
"src/app/{feature}/i18n/{locale}.json"
],
"formatOptions": {
"json": {
"nested": true
}
}
}
```
```json iOS (Swift) theme={null}
{
"localeFilePatterns": [
"ios/MyApp/{locale}.lproj/*.strings"
],
"customLocaleNames": {
"en-US": "en",
"fr-FR": "fr",
"es-ES": "es"
}
}
```
```json Android theme={null}
{
"localeFilePatterns": [
"android/app/src/main/res/{locale}/*.xml"
],
"formatOptions": {
"xml": {
"nested": false
}
},
"customLocaleNames": {
"en-US": "en",
"fr-FR": "fr",
"es-ES": "es"
}
}
```
```json Rails theme={null}
{
"localeFilePatterns": [
"config/locales/{locale}.yml",
"config/locales/{locale}/{feature}.yml"
],
"formatOptions": {
"yaml": {
"nested": true
}
}
}
```
```json Laravel theme={null}
{
"localeFilePatterns": [
"lang/{locale}.json",
"resources/lang/{locale}/{feature}.php"
],
"formatOptions": {
"json": {
"nested": false
}
}
}
```
```json Django theme={null}
{
"localeFilePatterns": [
"locale/{locale}/LC_MESSAGES/*.po"
],
"customLocaleNames": {
"en-US": "en",
"fr-FR": "fr"
}
}
```
## Complex Project Structures
### Monorepo with Multiple Apps
```json Configuration theme={null}
{
"localeFilePatterns": [
"apps/web/src/locales/{locale}.json",
"apps/mobile/src/i18n/{locale}.json",
"packages/shared/locales/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
}
}
}
```
```bash Structure theme={null}
my-monorepo/
├── apps/
│ ├── web/
│ │ └── src/locales/
│ │ ├── en.json
│ │ └── fr.json
│ └── mobile/
│ └── src/i18n/
│ ├── en.json
│ └── fr.json
├── packages/
│ └── shared/
│ └── locales/
│ ├── en/
│ │ ├── common.json
│ │ └── auth.json
│ └── fr/
│ ├── common.json
│ └── auth.json
└── .gleef/
└── config.json
```
### Legacy Project with Custom Names
```json Configuration theme={null}
{
"localeFilePatterns": [
"assets/translations/{locale}.json"
],
"formatOptions": {
"json": {
"nested": false
}
},
"customLocaleNames": {
"en-US": "english",
"fr-FR": "french",
"es-ES": "spanish",
"zh-CN": "chinese-simplified"
}
}
```
```bash Structure theme={null}
legacy-app/
├── assets/
│ └── translations/
│ ├── english.json
│ ├── french.json
│ ├── spanish.json
│ └── chinese-simplified.json
└── .gleef/
└── config.json
```
## Troubleshooting
### Pattern Validation Errors
If the pattern validation fails:
⚠ No locale files found with this path
Please correct your path, check the documentation or contact Gleef for help.
**Common issues:**
1. **Missing `{locale}` placeholder** - All patterns must include `{locale}`
2. **Incorrect file paths** - Verify the files exist at the specified location
3. **Wrong file extensions** - Ensure files use `.json`, `.xml`, `.yaml`, or `.strings`
4. **Path syntax errors** - Use forward slashes `/` in patterns
### Locale Mapping Issues
If your file/folder names don't match company locales:
1. **Use the interactive mapping** - The init command will prompt you to map each unmatched locale
2. **Skip unmapped locales** - Choose "Skip" for locales you don't want to include
3. **Update company locales** - Add missing locales in Gleef Studio if needed
### Manual Configuration
If you need to skip the interactive setup:
```json theme={null}
{
"localeFilePatterns": [
"your/custom/{locale}.json"
],
"customLocaleNames": {
"en-US": "english",
"fr-FR": "french"
},
"formatOptions": {
"json": {
"nested": true
}
}
}
```
## Best Practices
Always use the `{locale}` placeholder in your file patterns for proper locale detection.
1. **Use descriptive patterns** - Include folder structure in patterns: `src/i18n/{locale}/{feature}.json`
2. **Test your patterns** - Verify patterns match existing files before running init
3. **Plan for namespaces** - Consider using `{feature}` placeholders for organized translations
4. **Review generated config** - Check `.gleef/config.json` matches your expectations
5. **Commit configuration** - Add `.gleef/config.json` to version control
## Next Steps
After initialization:
Send your translation keys to Gleef
Learn about all configuration options and advanced patterns
# gleef login
Source: https://docs.gleef.eu/cli/commands/login
Authenticate with Gleef using your API key
The `gleef login` command authenticates your CLI with Gleef using your API key. This is required before using any other commands.
## Usage
```bash theme={null}
gleef login
```
Or provide the API key directly:
```bash theme={null}
gleef login --key YOUR_API_KEY
```
## Options
| Flag | Short | Description |
| ------- | ----- | -------------------------------------------- |
| `--key` | `-k` | API key for Gleef (skips interactive prompt) |
## Interactive Authentication
When you run `gleef login` without the `--key` flag, you'll be guided through an interactive process:
```bash theme={null}
$ gleef login
? Do you already have a Gleef API key? (Y/n)
```
### If you don't have an API key:
```bash theme={null}
? Do you already have a Gleef API key? No
Please generate a key at https://app.gleef.eu/settings/api-keys (Click to open).
? What's your Gleef API key? **********************
API key successfully set
```
### If you have an API key:
```bash theme={null}
? Do you already have a Gleef API key? Yes
? What's your Gleef API key? **********************
API key successfully set
```
## Direct Authentication
For automation or scripts, provide the key directly:
```bash theme={null}
gleef login --key gl_1a2b3c4d5e6f7g8h9i0j
```
## Getting Your API Key
Visit [https://app.gleef.eu/settings/api-keys](https://app.gleef.eu/settings/api-keys) and log in to your account.
Click "Generate New API Key" and provide a description (e.g., "Simo's CLI Access").
Copy the generated API key. You won't be able to see it again once you close the dialog.
Store the key securely - it provides full access to your Gleef account.
## Authentication Storage
Once authenticated, your API key is stored globally in your user configuration directory:
* **macOS:** `~/.config/gleef/config.json`
* **Linux:** `~/.config/gleef/config.json`
* **Windows:** `%APPDATA%\gleef\config.json`
The stored configuration looks like:
```json theme={null}
{
"auth": {
"apiKey": "your-api-key-here"
}
}
```
## Security Considerations
Your API key provides full access to your Gleef account. Keep it secure!
### Best Practices
1. **Never commit API keys** - Don't include them in version control
2. **Use environment variables** - For CI/CD and automation
3. **Rotate keys regularly** - Generate new keys periodically
4. **Limit key access** - Use separate keys for different environments
5. **Revoke unused keys** - Remove keys that are no longer needed
### Environment Variables
For CI/CD pipelines, you can set the API key as an environment variable:
```bash theme={null}
export GLEEF_API_KEY=your-api-key-here
```
The CLI will automatically use this environment variable if no key is stored locally.
## Verification
To verify your authentication is working:
```bash theme={null}
gleef init
```
If authentication fails, you'll see an error message:
```bash theme={null}
The given API key doesn't seem to be valid. Please check your key and try again.
```
## Re-authentication
To change your API key or re-authenticate:
1. **Run login again:** `gleef login` will overwrite the existing key
2. **Use direct flag:** `gleef login --key NEW_API_KEY`
3. **Delete config:** Remove the config file and run `gleef login`
## Troubleshooting
### Invalid API Key Error
```bash theme={null}
The given API key doesn't seem to be valid. Please check your key and try again.
```
**Solutions:**
* Verify the key was copied correctly (no extra spaces)
* Check if the key has been revoked in the Gleef dashboard
* Ensure you're using the correct account/workspace
### Network Connection Issues
If you can't reach the Gleef servers:
* Check your internet connection
* Verify corporate firewall settings
* Try using a VPN if behind restrictive network policies
### Permission Issues
If you get file permission errors:
* **macOS/Linux:** Check permissions on `~/.config/gleef/`
* **Windows:** Ensure you have write access to `%APPDATA%\gleef\`
## Examples
### Basic Login
```bash theme={null}
$ gleef login
? Do you already have a Gleef API key? Yes
? What's your Gleef API key? gl_1a2b3c4d5e6f7g8h9i0j
API key successfully set
```
### Direct Login
```bash theme={null}
$ gleef login --key gl_1a2b3c4d5e6f7g8h9i0j
API key successfully set
```
### Script Usage
```bash theme={null}
#!/bin/bash
echo "Setting up Gleef CLI..."
gleef login --key $GLEEF_API_KEY
gleef init
echo "Gleef CLI ready!"
```
## Next Steps
After successful authentication:
Set up Gleef in your project
Complete your first translation workflow
# Commands Overview
Source: https://docs.gleef.eu/cli/commands/overview
Complete reference for all Gleef CLI commands
Gleef CLI provides a simple set of commands to manage your translation workflow. Each command is designed to handle a specific aspect of the localization process.
## Available Commands
Initialize Gleef in your project by detecting locale files and creating configuration
Authenticate with Gleef using your API key
Push new and updated translation keys to Gleef
Generate AI translations and merge them back into your local files
Get the latest translations from Gleef and update local files
## Command Reference
### Core Commands
| Command | Purpose | When to Use |
| ----------------- | --------------------------------------- | ----------------------------------------------------------------------------------- |
| `gleef init` | Project setup | First time setting up Gleef in a project |
| `gleef login` | Authentication | When setting up CLI or changing API keys |
| `gleef push` | Upload local translations | Standard command to send new and modified keys to Gleef |
| `gleef translate` | AI-powered translation with local merge | When you want to generate AI translations and write them back into your local files |
| `gleef pull` | Sync translations | When you want to get latest translations from your team |
## Global Flags
All commands support these global flags:
| Flag | Description |
| ----------- | ------------------------------------- |
| `--help` | Show help information for the command |
| `--version` | Display the CLI version |
## Getting Help
Get help for any command using the `--help` flag:
```bash theme={null}
gleef --help # General help
gleef init --help # Help for init command
gleef push --help # Help for push command
gleef translate --help # Help for translate command
gleef pull --help # Help for pull command
```
You can also use the dedicated help command:
```bash theme={null}
gleef help # General help
gleef help init # Help for init command
gleef help push # Help for push command
gleef help translate # Help for translate command
gleef help pull # Help for pull command
```
## Command Workflow
Here's the typical workflow using Gleef CLI commands:
```bash theme={null}
gleef login # Authenticate once
gleef init # Set up project configuration
```
```bash theme={null}
gleef push # Send new and updated keys to Gleef
```
```bash theme={null}
gleef pull # Get latest translations
```
```bash theme={null}
gleef push # Upload changes
gleef pull # Sync updates
```
## Command Examples
### Basic Usage
```bash theme={null}
# Set up a new project
gleef init
# Push translations to Gleef
gleef push
# Get latest translations
gleef pull
```
### Advanced Usage
```bash theme={null}
# Push only specific keys matching a pattern (regex)
gleef push --match "^button\."
# Get all translations including new keys
gleef pull --add-new
# Check for new translations without updating
gleef pull --check
# Skip review process and publish immediately
gleef push --skip-review
```
## Error Handling
All commands provide clear error messages and exit codes:
* **Exit code 0:** Command completed successfully
* **Exit code 1:** Command failed with an error
Common error scenarios:
* **Authentication errors:** Run `gleef login` to re-authenticate
* **Configuration errors:** Check your `.gleef/config.json` file
* **Network errors:** Verify your internet connection and API access
* **File errors:** Ensure your locale files are properly formatted
## Next Steps
Learn best practices for using these commands together
Customize CLI behavior with configuration options
# gleef pull
Source: https://docs.gleef.eu/cli/commands/pull
Get the latest translations from Gleef and update your local files
The `gleef pull` command downloads the latest approved translations from Gleef and updates your local localization files.
## Usage
```bash theme={null}
gleef pull
```
## Options
| Flag | Short | Description |
| ------------- | ----- | --------------------------------------------------------------------------------------------- |
| `--add-new` | `-a` | Creates new localization keys if they are not in the current locale files |
| `--check` | `-c` | Checks for new translations without updating them (returns error if translations are missing) |
| `--match` | `-m` | Filter incoming translations by key pattern |
| `--namespace` | `-n` | Filter translations by namespace/file pattern (e.g., "auth" or "auth\|common") |
## What it does
The `pull` command:
1. **Fetches remote state** - Gets the latest translations from Gleef
2. **Compares changes** - Identifies modified and new translations
3. **Shows preview** - Displays what will be updated (unless using `--check`)
4. **Updates files** - Applies changes to your local localization files
## Basic Usage
### Pull Updates Only
```bash theme={null}
gleef pull
```
This updates existing keys with new translations but doesn't add new keys.
### Add New Translations
```bash theme={null}
gleef pull --add-new
```
This updates existing keys AND adds new translation keys that were created remotely.
### Filter by Key Pattern
```bash theme={null}
gleef pull --match "^feature\."
```
Only pulls keys matching the pattern. The pattern is a JavaScript regular expression tested against each key (unanchored), with a fallback to a plain substring check if the pattern isn't valid regex.
This is regex, not a glob. `.` matches any character and `*` means "zero or more of the previous character", so a pattern like `*.title` is invalid regex and won't behave like a glob. Use `\.title$` to match keys ending with `.title`.
### Filter by Namespace
```bash theme={null}
gleef pull --namespace "auth"
```
Only pulls translations from files matching the namespace pattern. Useful for projects with multiple namespace/feature files.
### Check for Updates
```bash theme={null}
gleef pull --check
```
This checks if updates are available without applying them. Useful for CI/CD to verify translation status.
## Example Output
### Updates Available
```bash theme={null}
$ gleef pull
The following translations will be updated:
en-US
welcome.title
welcome.subtitle
fr-FR
welcome.title
welcome.subtitle
? Do you wish to continue? This might overwrite your local changes. (Y/n)
Translation files updated successfully.
```
### New Keys Available (with --add-new)
```bash theme={null}
$ gleef pull --add-new
The following translations will be updated:
en-US
welcome.title
fr-FR
welcome.title
5 translations will be added.
? Do you wish to continue? This might overwrite your local changes. (Y/n)
Translation files updated successfully.
```
### Nothing to Update
```bash theme={null}
$ gleef pull
Nothing to update. Your translations are up to date.
```
### Check Mode
```bash theme={null}
$ gleef pull --check
Translations check: 3 translations are outdated. Please run `gleef pull` to update them.
```
## The --add-new Flag
By default, `pull` only updates existing keys. Use `--add-new` to also add new keys:
### Without --add-new (default)
* ✅ Updates existing translation values
* ❌ Ignores new keys created remotely
* ✅ Safe for stable releases
### With --add-new
* ✅ Updates existing translation values
* ✅ Adds new keys created remotely
* ⚠️ May require code changes to handle new keys
## Filtering Options
### Pattern Matching with --add-new
When using `--add-new`, you can filter which new keys to add:
```bash theme={null}
# Only add new keys matching the pattern
gleef pull --add-new --match "^components\."
# Add new keys for specific features
gleef pull --add-new --match "^(auth|profile)\."
```
### Namespace Filtering
Filter translations by namespace/file pattern. This is useful when you have multiple namespaced files per locale:
```bash theme={null}
# Pull only auth-related translations
gleef pull --namespace "auth"
# Pull multiple namespaces using pipe syntax
gleef pull --namespace "auth|common"
# Combine with --add-new to add keys only to specific namespaces
gleef pull --add-new --namespace "auth"
# Combine with --match for fine-grained control
gleef pull --namespace "components" --match "^button\."
```
**Example Use Case:**
If your project structure is:
```
locales/
en/
auth.json
common.json
components.json
fr/
auth.json
common.json
components.json
```
You can pull updates for just the auth namespace:
```bash theme={null}
gleef pull --namespace "auth"
```
## Multiple File Namespaces
If your project has multiple files per locale, you'll be prompted to choose where new keys should be added:
```bash theme={null}
$ gleef pull --add-new
Multiple files found for some locales. Choose which file pattern to add new translations to:
> Files matching: src/locales/*.json
Files matching: src/components/*.json
```
This ensures new keys are added to the correct files based on your project structure.
## Conflict Prevention
The `pull` command is designed to be safe:
1. **Shows preview** - Always shows what will change before applying
2. **Requires confirmation** - Asks before overwriting local changes
3. **Preserves formatting** - Maintains your file structure and indentation
4. **Atomic updates** - Either all changes apply or none do
## Examples
### Feature Integration
```bash theme={null}
# Pull new keys added by other team members
gleef pull --add-new --match "^newfeature\."
# Integrate the keys into your code
# Then push your own translations
gleef push
```
### Namespace-Specific Updates
```bash theme={null}
# Pull updates only for authentication files
gleef pull --namespace "auth"
# Pull and add new keys for multiple namespaces
gleef pull --add-new --namespace "auth|common"
```
### Release Preparation (No CI)
```bash theme={null}
# Get latest validated updates before release
gleef pull
```
### CI/CD Integration
```bash theme={null}
# Check if translations are up to date
if ! gleef pull --check; then
echo "Translations are outdated. Please run 'gleef pull' locally."
exit 1
fi
# Or automatically update in CI
gleef pull --add-new --skip-confirm
```
## Error Handling
### Common Errors
**No Changes Error:**
```bash theme={null}
Nothing to update. Your translations are up to date.
```
*This is normal - no action needed*
**Network Error:**
```bash theme={null}
Error: Network request failed
```
*Solution:* Check internet connection and try again
**File Permission Error:**
```bash theme={null}
Error: Cannot write to locale file
```
*Solution:* Check file permissions and ensure files aren't locked
**Configuration Error:**
```bash theme={null}
Error: No locale files found
```
*Solution:* Run `gleef init` or check your `.gleef/config.json`
## Troubleshooting
### Large Number of Changes
If you see many unexpected changes:
1. **Check recent activity** - Review what happened in Gleef Studio
2. **Use patterns** - Pull specific sections with `--match`
3. **Coordinate with team** - Ensure you're not missing context
### Missing Translations
If expected translations aren't appearing:
1. **Use --add-new flag** - New keys require the `--add-new` flag
2. **Check patterns** - Ensure your `--match` pattern is correct
3. **Verify approval** - Translations must be approved in Gleef Studio
### File Conflicts
If you have local changes that conflict:
1. **Commit local changes** - Save your work before pulling
2. **Review differences** - Understand what changed remotely
3. **Merge carefully** - Decide which version to keep
## Integration Examples
### NPM Scripts
```json theme={null}
{
"scripts": {
"i18n:pull": "gleef pull",
"i18n:pull:all": "gleef pull --add-new",
"i18n:check": "gleef pull --check",
"i18n:pull:namespace": "gleef pull --namespace"
}
}
```
### Git Hooks
```bash theme={null}
#!/bin/bash
# pre-push hook - ensure translations are up to date
if ! gleef pull --check; then
echo "Translations are outdated. Run 'gleef pull' before pushing."
exit 1
fi
```
### GitHub Actions
```yaml theme={null}
- name: Check translations
run: |
gleef login --key ${{ secrets.GLEEF_API_KEY }} # Or use the env variable directly
gleef pull --check
```
## Next Steps
After pulling translations:
Send your new translation keys to Gleef
Customize how files are processed
# gleef push
Source: https://docs.gleef.eu/cli/commands/push
Push local translations to Gleef
The `gleef push` command uploads your local translation changes (new keys and edits) to Gleef. It is the standard command for syncing your local files to Gleef.
If you want Gleef to generate AI translations and merge them back into your local files in one step, use `gleef translate` instead.
## Usage
```bash theme={null}
gleef push
```
## Options
| Flag | Short | Description |
| --------------- | ----- | ------------------------------------------------------------------------------ |
| `--match` | `-m` | Filter translations by key pattern |
| `--namespace` | `-n` | Filter translations by namespace/file pattern (e.g., "auth" or "auth\|common") |
| `--skip-review` | `-s` | Publish translations immediately instead of creating drafts |
## What it does
The `push` command:
1. **Analyzes local files** - Compares your local translations with remote state
2. **Detects changes** - Identifies new keys and modified translations
3. **Handles conflicts** - Checks for conflicts with remote edits
4. **Uploads changes** - Pushes your translations to Gleef
5. **Creates drafts** - Sets up translations for team review (unless `--skip-review` is used)
`gleef push` uploads what you have locally. Translations for missing locales are produced by Gleef after the push and become available via `gleef pull`. To generate AI translations and immediately write them back to your local files in one step, use `gleef translate`.
## Basic Usage
### Push All Changes
```bash theme={null}
gleef push
```
This will upload all new and modified translation keys in your project.
### Filter by Key Pattern
```bash theme={null}
gleef push --match "^button\."
```
Only pushes keys matching the pattern. The pattern is a JavaScript regex (see [Pattern Matching](#pattern-matching) below).
### Filter by Namespace
```bash theme={null}
gleef push --namespace "auth"
```
Only pushes translations from files matching the namespace pattern. Useful for projects with multiple namespace/feature files.
### Skip Review Process
```bash theme={null}
gleef push --skip-review
```
Publishes translations immediately without creating drafts for review.
## Example Output
### Pushing Changes
```bash theme={null}
$ gleef push
Pushing 5 edited translations
⠋ Pushing translations to Gleef...
✔ Your translations were pushed successfully.
```
### No Changes to Push
```bash theme={null}
$ gleef push
Nothing new to push
```
## Pattern Matching
The `--match` flag accepts a JavaScript regular expression that is tested against each translation key. It is **unanchored**, so a pattern matches if it appears anywhere in the key. If the pattern isn't valid regex, it falls back to a plain substring check.
This is regex, not a glob. `.` matches any character and `*` means "zero or more of the previous character", so a pattern like `*.title` is invalid regex and won't behave like a glob.
### Common Patterns
```bash theme={null}
# Match keys starting with "button."
gleef push --match "^button\."
# Match keys ending with ".title"
gleef push --match "\.title$"
# Match keys containing "auth."
gleef push --match "auth\."
```
### Complex Patterns
```bash theme={null}
# Match keys containing "button." OR "nav." (regex alternation)
gleef push --match "button\.|nav\."
# Match nested keys like components.
.label
gleef push --match "^components\..+\.label$"
```
## Conflict Resolution
If there are conflicts with remotely edited translations, the command will stop and show details:
```bash theme={null}
$ gleef push
en-US
welcome.title
Local value: Welcome to our app
Remote value: Welcome to our application
Conflict with remotely edited translations. Update keys with the remote value, or change them from the webapp.
```
### Resolving Conflicts
1. **Update locally** - Change your local value to match the remote
2. **Update remotely** - Change the value in Gleef Studio
3. **Pull first** - Run `gleef pull` to get latest changes, then push
## When to Use Push vs Translate
| Use `gleef push` when... | Use `gleef translate` when... |
| ---------------------------------------------- | ------------------------------------------------------------------------ |
| You're adding new keys (the standard workflow) | You want AI translations written back into your local files immediately |
| You're updating existing translations | You need the AI output available locally before running `gleef pull` |
| You have translations from another source | You want a single command that generates and merges translations locally |
## Review Workflow
### Default Behavior (Draft Mode)
By default, changes are pushed as drafts for team review:
1. **Changes uploaded** - Your edits are pushed to Gleef
2. **Drafts created** - Changes are marked as drafts in Gleef Studio
3. **Team reviews** - Your team can review and approve in Gleef Studio
4. **Pull approved** - Use `gleef pull` to sync approved translations
### Skip Review Mode
With `--skip-review`, changes are published immediately:
```bash theme={null}
gleef push --skip-review
```
This is useful for:
* Automated workflows
* Non-critical updates
* When you don't need team review
## Examples
### Development Workflow
```bash theme={null}
# Add or edit translations in your local files
# Then push them to Gleef
gleef push
# Ask for review in Gleef Studio
# Pull approved translations
gleef pull
```
### Feature Development
```bash theme={null}
# Push only specific feature translations
gleef push --match "^checkout\."
# Test the changes
gleef pull --match "^checkout\."
```
### Namespace-Specific Push
```bash theme={null}
# Push only authentication-related files
gleef push --namespace "auth"
# Push multiple namespaces
gleef push --namespace "auth|common"
# Combine namespace and pattern filtering
gleef push --namespace "components" --match "^button\."
```
**Example Use Case:**
If your project structure is:
```
locales/
en/
auth.json
common.json
components.json
fr/
auth.json
common.json
components.json
```
You can push changes for just the auth namespace:
```bash theme={null}
gleef push --namespace "auth"
```
## Error Handling
### Common Errors
**Authentication Error:**
```bash theme={null}
Couldn't push translations: Authentication failed
```
*Solution:* Run `gleef login` to re-authenticate
**Configuration Error:**
```bash theme={null}
Couldn't push translations: No locale files found
```
*Solution:* Run `gleef init` or check your `.gleef/config.json`
**Network Error:**
```bash theme={null}
Couldn't push translations: Network request failed
```
*Solution:* Check internet connection and try again
**File Format Error:**
```bash theme={null}
Couldn't push translations: Invalid JSON in locale file
```
*Solution:* Fix JSON syntax errors in your locale files
## Best Practices
Always pull latest changes before pushing to avoid conflicts.
1. **Pull latest changes** - `gleef pull` to get recent updates
2. **Use patterns for targeted updates** - Filter with `--match` for focused pushes
3. **Review in Gleef Studio** - Check translations quality and ask for review
4. **Coordinate with team** - Ensure reviewers know about pending changes
## Integration Examples
### NPM Scripts
```json theme={null}
{
"scripts": {
"i18n:push": "gleef push",
"i18n:push:publish": "gleef push --skip-review",
"i18n:push:feature": "gleef push --match",
"i18n:push:namespace": "gleef push --namespace"
}
}
```
### GitHub Actions
```yaml theme={null}
- name: Push translations
run: |
gleef login --key ${{ secrets.GLEEF_API_KEY }}
gleef push --skip-review
```
## Next Steps
After pushing changes:
Review and approve translations in Gleef Studio
Sync approved translations back to your project
# gleef translate
Source: https://docs.gleef.eu/cli/commands/translate
Generate AI translations with Gleef and merge them back into your local files
The `gleef translate` command sends your new and modified keys to Gleef, generates AI translations for the missing locales, and writes the generated translations back into your local files in a single step.
For the standard workflow of uploading new and updated translations, use `gleef push`. Use `gleef translate` only when you specifically want the generated translations merged into your local files immediately, rather than pulling them later.
## Usage
```bash theme={null}
gleef translate
```
## Options
| Flag | Short | Description |
| --------------- | ----- | ------------------------------------------------------------------------------ |
| `--match` | `-m` | Filter translations by key pattern |
| `--namespace` | `-n` | Filter translations by namespace/file pattern (e.g., "auth" or "auth\|common") |
| `--skip-review` | `-s` | Publish translations immediately instead of creating drafts |
## What it does
The `translate` command:
1. **Analyzes local files** - Compares your local translations with remote state
2. **Detects changes** - Identifies new keys and modified translations
3. **Handles conflicts** - Checks for conflicts with remote edits
4. **Sends for translation** - Uploads keys to Gleef's AI translation service
5. **Updates local files** - Merges generated translations back to your files
6. **Creates drafts** - Sets up translations for team review (unless `--skip-review` is used)
## Basic Usage
### Push All Changes
```bash theme={null}
gleef translate
```
This will process all new and modified translation keys in your project.
### Filter by Key Pattern
```bash theme={null}
gleef translate --match "^button\."
```
Only processes keys matching the pattern. The pattern is a JavaScript regex (see [Pattern Matching](#pattern-matching) below).
### Filter by Namespace
```bash theme={null}
gleef translate --namespace "auth"
```
Only processes translations from files matching the namespace pattern. Useful for projects with multiple namespace/feature files.
### Skip Review Process
```bash theme={null}
gleef translate --skip-review
```
Publishes translations immediately without creating drafts for review.
## Example Output
### Processing New Translations
```bash theme={null}
$ gleef translate
Processing 12 new translations
⠋ Translating with Gleef AI
✔ Your files were translated successfully. Your team can review them from Gleef Studio.
```
### Processing Mixed Changes
```bash theme={null}
$ gleef translate
Processing 8 new translations
Pushing 3 edited translations
⠋ Translating with Gleef AI
✔ Your files were translated successfully. Your team can review them from Gleef Studio.
```
### No Changes to Process
```bash theme={null}
$ gleef translate
Nothing new to translate
```
## Pattern Matching
The `--match` flag accepts a JavaScript regular expression that is tested against each translation key. It is **unanchored**, so a pattern matches if it appears anywhere in the key. If the pattern isn't valid regex, it falls back to a plain substring check.
This is regex, not a glob. `.` matches any character and `*` means "zero or more of the previous character", so a pattern like `*.title` is invalid regex and won't behave like a glob.
### Common Patterns
```bash theme={null}
# Match keys starting with "button."
gleef translate --match "^button\."
# Match keys ending with ".title"
gleef translate --match "\.title$"
# Match keys containing "auth."
gleef translate --match "auth\."
```
### Complex Patterns
```bash theme={null}
# Match keys containing "button." OR "nav." (regex alternation)
gleef translate --match "button\.|nav\."
# Match nested keys like components..label
gleef translate --match "^components\..+\.label$"
```
## Conflict Resolution
If there are conflicts with remotely edited translations, the command will stop and show details:
```bash theme={null}
$ gleef translate
en-US
welcome.title
Local value: Welcome to our app
Remote value: Welcome to our application
Conflict with remotely edited translations. Update keys with the remote value, or change them from the webapp.
```
### Resolving Conflicts
1. **Update locally** - Change your local value to match the remote
2. **Update remotely** - Change the value in Gleef Studio
3. **Pull first** - Run `gleef pull` to get latest changes, then translate
## Translation Process
### New Keys
When you add new translation keys:
```json theme={null}
{
"welcome": {
"title": "Welcome to our app",
"subtitle": "Get started with our amazing features"
}
}
```
The `translate` command will:
1. Detect the new keys
2. Send them to Gleef AI for translation
3. Generate translations in all your target languages
4. Update your local files with the generated translations
### Modified Keys
When you change existing translations:
```json5 theme={null}
{
"welcome": {
"title": "Welcome to our average app", // [!code --]
"title": "Welcome to our amazing app", // [!code ++]
}
}
```
The command will:
1. Detect the modification
2. Push the edited translation as draft or directly publish it
3. Preserve translations in other languages
## Review Workflow
### Default Behavior (Draft Mode)
By default, translations are created as drafts for team review:
1. **Translations generated** - AI creates translations for all target languages
2. **Drafts created** - Translations are marked as drafts in Gleef Studio, where you can ask for a review
3. **Team reviews** - Your team can review and approve in Gleef Studio
4. **Pull approved** - Use `gleef pull` to sync approved translations
### Skip Review Mode
With `--skip-review`, translations are published immediately:
```bash theme={null}
gleef translate --skip-review
```
This is useful for:
* Automated workflows
* Non-critical translations
* When you trust the AI output completely
## Examples
### Development Workflow
```bash theme={null}
# Add new keys to your base language file
# Then push for translation
gleef translate
# Ask for review of the draft in the Gleef Studio
# Pull approved translations
gleef pull
```
### Feature Development
```bash theme={null}
# Work on a specific feature
gleef translate --match "^checkout\."
# Test the translations
gleef pull --match "^checkout\."
```
### Bulk Updates
```bash theme={null}
# Translate all incomplete navigation-related text
gleef translate --match "^(nav|menu|header)\."
```
### Namespace-Specific Translation
```bash theme={null}
# Translate only authentication-related files
gleef translate --namespace "auth"
# Translate multiple namespaces
gleef translate --namespace "auth|common"
# Combine namespace and pattern filtering
gleef translate --namespace "components" --match "^button\."
```
**Example Use Case:**
If your project structure is:
```
locales/
en/
auth.json
common.json
components.json
fr/
auth.json
common.json
components.json
```
You can push translations for just the auth namespace:
```bash theme={null}
gleef translate --namespace "auth"
```
## Error Handling
### Common Errors
**Authentication Error:**
```bash theme={null}
Couldn't generate and push translations: Authentication failed
```
*Solution:* Run `gleef login` to re-authenticate
**Configuration Error:**
```bash theme={null}
Couldn't generate and push translations: No locale files found
```
*Solution:* Run `gleef init` or check your `.gleef/config.json`
**Network Error:**
```bash theme={null}
Couldn't generate and push translations: Network request failed
```
*Solution:* Check internet connection and try again
**File Format Error:**
```bash theme={null}
Couldn't generate and push translations: Invalid JSON in locale file
```
*Solution:* Fix JSON syntax errors in your locale files
## Best Practices
Always pull latest changes before pushing new translations to avoid conflicts.
1. **Pull latest changes** - `gleef pull` to get recent updates
2. **Use patterns for large translation jobs** - Filter with `--match` for focused updates
3. **Review in Gleef Studio** - Check AI translations quality and ask for a review there or publish
4. **Coordinate with team** - Ensure reviewers know about pending translations
## Integration Examples
### Git Hooks
This hook would filter keys based on the committed file name, given that the new keys follow a precise naming convention.
```bash theme={null}
#!/bin/bash
# pre-commit hook
gleef translate --match "$(git diff --name-only --cached | grep -E '\.(json|xml|yaml|strings)$' | head -1 | cut -d'/' -f1).*"
```
### NPM Scripts
```json theme={null}
{
"scripts": {
"i18n:push": "gleef translate",
"i18n:push:publish": "gleef translate --skip-review",
"i18n:push:feature": "gleef translate --match",
"i18n:push:namespace": "gleef translate --namespace"
}
}
```
### GitHub Actions
```yaml theme={null}
- name: Push translations
run: |
gleef login --key ${{ secrets.GLEEF_API_KEY }}
gleef translate --skip-review
```
## Next Steps
After pushing translations:
Review and approve translations in Gleef Studio
Sync approved translations back to your project
# Configuration File
Source: https://docs.gleef.eu/cli/configuration/config-file
Complete reference for the .gleef/config.json configuration file
The `.gleef/config.json` file controls how Gleef CLI processes your localization files. This file is created automatically by `gleef init` but can be customized for complex project setups.
## Configuration Location
The configuration file is always located at:
```
your-project/
└── .gleef/
└── config.json
```
This file should be committed to version control so your team shares the same configuration.
## Basic Configuration Structure
```json theme={null}
{
"localeFilePatterns": [
"src/locales/{locale}.json",
"public/i18n/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
},
"xml": {
"nested": false
}
},
"customLocaleNames": {
"en-US": "english",
"fr-FR": "french"
},
"prependNamespaceToKeys": false
}
```
## Configuration Properties
### localeFilePatterns
**Type:** `string[]`\
**Required:** Yes
Defines placeholder patterns that match your localization files. Each pattern **must** include the `{locale}` placeholder.
```json5 theme={null}
{
"localeFilePatterns": [
"src/locales/{locale}.json", // Simple locale files
"public/i18n/{locale}/{feature}.json", // Namespaced by feature
"assets/strings/{locale}.strings", // iOS strings files
"config/locales/{feature}.{locale}.yml" // Feature-first naming
]
}
```
**Placeholder Syntax:**
| Placeholder | Description | Example |
| ------------- | --------------------------------- | ----------------------------- |
| `{locale}` | **Required** - Locale identifier | `en`, `fr-FR`, `es-ES` |
| `{feature}` | Optional - Feature/namespace name | `common`, `auth`, `dashboard` |
| `{namespace}` | Optional - Alternative to feature | `header`, `footer`, `modal` |
**Pattern Examples:**
| Pattern | Matches | Structure |
| --------------------------------- | ------------------------------------------------ | ------------------------- |
| `src/{locale}.json` | `src/en.json`, `src/fr.json` | Simple structure |
| `locales/{locale}/{feature}.json` | `locales/en/common.json`, `locales/fr/auth.json` | Locale-first namespacing |
| `i18n/{feature}.{locale}.json` | `i18n/common.en.json`, `i18n/auth.fr.json` | Feature-first namespacing |
| `assets/{locale}/strings.xml` | `assets/en/strings.xml`, `assets/fr/strings.xml` | Folder-based locales |
### formatOptions
**Type:** `object`\
**Required:** No
Controls how different file formats are processed and generated.
```json theme={null}
{
"formatOptions": {
"json": {
"nested": true
},
"xml": {
"nested": false
},
"yaml": {
"nested": true
}
}
}
```
**Format-Specific Options:**
#### JSON Options
* `nested` (boolean): Use nested object structure vs flat keys
#### XML Options
* `nested` (boolean): Use nested elements vs flat structure
#### YAML Options
* `nested` (boolean): Use nested structure vs flat keys
#### Strings Options
None
### customLocaleNames
**Type:** `object`
**Required:** No
Maps your company's locale codes to the actual file or folder names in your project when they don't match.
```json theme={null}
{
"customLocaleNames": {
"en-US": "english",
"fr-FR": "french",
"es-ES": "spanish",
"zh-CN": "chinese-simplified"
}
}
```
**Use Cases:**
* Legacy naming conventions that can't be changed
* Simplified locale names (`fr` instead of `fr-FR`)
* Descriptive filenames in existing projects
* Platform-specific naming requirements (iOS: `en.lproj`)
**How it works:**
* Company locale `"fr-FR"` maps to file/folder name `"french"`
* Pattern `src/{locale}.json` resolves to `src/french.json`
* Gleef treats this file as containing `fr-FR` translations
### prependNamespaceToKeys
**Type:** `boolean`
**Required:** No
**Default:** `false`
Automatically prepends the namespace/file name to translation keys when pushing to Gleef's remote storage. This is useful when you have multiple namespace files per locale and want to keep keys unique across files remotely while maintaining simple keys locally.
```json theme={null}
{
"prependNamespaceToKeys": true
}
```
**How it works:**
When enabled, translation keys are transformed before being sent to Gleef:
**Local file structure:**
```
locales/
en/
auth.json → { "loginButton": "Log In" }
common.json → { "loginButton": "Sign In" }
```
Without `prependNamespaceToKeys` (default):
* Both files have key `loginButton`
* Conflict: Remote storage can't distinguish between them
With `prependNamespaceToKeys: true`:
* `auth.json` → Remote key: `auth.loginButton`
* `common.json` → Remote key: `common.loginButton`
* No conflict: Keys are unique remotely
**Use Cases:**
* Projects with multiple namespace files per locale
* Preventing key naming conflicts across different feature files
* Maintaining simple local key names while having unique remote keys
* Working with modular translation architectures
**Important:**
* Keys are only transformed for remote storage - local files remain unchanged
* When pulling translations, namespace prefixes are automatically stripped
* Works seamlessly with the `--namespace` flag for filtering
### placeholderTransformation
**Type:** `string | "default" | "none"`
**Required:** No
**Default:** `"none"` (transformation disabled)
Automatically converts placeholders between platform-specific formats and Gleef's universal ICU MessageFormat. This enables seamless cross-platform development where different platforms use different placeholder syntaxes.
```json theme={null}
{
"placeholderTransformation": "default"
}
```
**Configuration Options:**
| Value | Description |
| ----------- | --------------------------------------------------------- |
| `"none"` | Disabled - No transformation (default) |
| `"default"` | Use smart defaults based on file extension |
| `"ios"` | Force iOS format (`%@`, `%d`, `%1$@`) |
| `"android"` | Force Android format (`%s`, `%d`, `%1$s`) |
| `"printf"` | Force printf format (`%s`, `%d`, `%f`) |
| `"icu"` | Force ICU MessageFormat (`{variable}`, `{count:integer}`) |
**Default Format Mappings:**
When using `"default"`, file extensions automatically determine the format:
| File Extension | Platform Format | Example Placeholder |
| --------------- | ----------------- | ------------------------------- |
| `.json` | ICU MessageFormat | `{userName}`, `{count:integer}` |
| `.strings` | iOS | `%@`, `%d`, `%1$@` |
| `.xml` | Android | `%s`, `%d`, `%1$s` |
| `.yaml`, `.yml` | printf | `%s`, `%d`, `%f` |
**How it works:**
Gleef stores all translations using ICU MessageFormat internally. When you push/pull:
* **Push:** Converts your platform format → ICU format for remote storage
* **Pull:** Converts ICU format → your platform format for local files
**Platform Format Examples:**
```swift iOS (.strings) theme={null}
// Local file format
"greeting" = "Hello %@, you have %d messages";
"profile" = "Welcome back, %1$@! Last login: %2$@";
// Stored in Gleef as ICU
"greeting" = "Hello {variable}, you have {variable2:integer} messages";
"profile" = "Welcome back, {variable@1}! Last login: {variable@2}";
```
```xml Android (strings.xml) theme={null}
Hello %s, you have %d messages
Welcome back, %1$s! Last login: %2$s
Hello {variable}, you have {variable2:integer} messages
Welcome back, {variable@1}! Last login: {variable@2}
```
```json Web (JSON with ICU) theme={null}
// Local file format (no transformation needed)
{
"greeting": "Hello {userName}, you have {count:integer} messages",
"profile": "Welcome back, {userName}! Last login: {lastLogin}"
}
// Already in ICU format - stored as-is
```
```yaml Backend (YAML with printf) theme={null}
# Local file format
greeting: "Hello %s, you have %d messages"
profile: "Welcome back, %s! Last login: %s"
# Stored in Gleef as ICU
greeting: "Hello {variable}, you have {variable2:integer} messages"
profile: "Welcome back, {variable}! Last login: {variable2}"
```
**Use Cases:**
**Cross-Platform Projects:**
```json theme={null}
{
"localeFilePatterns": [
"src/web/{locale}.json",
"ios/Resources/{locale}.lproj/Localizable.strings",
"android/app/res/values-{locale}/strings.xml"
],
"placeholderTransformation": "default"
}
```
With this configuration:
* Web JSON files use `{userName}` syntax (ICU)
* iOS strings use `%@` syntax (iOS format)
* Android XML uses `%s` syntax (Android format)
* All convert to ICU when stored in Gleef
* Each pulls back in its native format
**Forcing a Specific Format:**
```json theme={null}
{
"localeFilePatterns": [
"locales/{locale}.json"
],
"placeholderTransformation": "android"
}
```
This forces JSON files to use Android placeholder syntax (`%s`, `%d`) instead of the default ICU format.
**Type Annotations:**
Placeholders can include type information for better validation:
| Type | iOS | Android | ICU |
| ------- | ---------- | ------- | -------------------- |
| String | `%@` | `%s` | `{variable}` |
| Integer | `%d`, `%i` | `%d` | `{variable:integer}` |
| Float | `%f` | `%f` | `{variable:float}` |
**Positional Arguments:**
Reorder placeholders in translations using positional markers:
| Format | Syntax | Example |
| ------- | -------------- | ---------------------------------------- |
| iOS | `%1$@` | `%1$@ logged in at %2$@` |
| Android | `%1$s` | `%1$s logged in at %2$s` |
| ICU | `{variable@1}` | `{variable@1} logged in at {variable@2}` |
**Important Notes:**
* Transformation happens automatically during push/pull operations
* Local files always maintain their native platform format
* Translators see the universal ICU format in Gleef's platform
* Conversion is deterministic and reversible
## Advanced Configuration Examples
### Multi-Module Project
```json Configuration theme={null}
{
"localeFilePatterns": [
"apps/web/src/locales/{locale}.json",
"apps/mobile/assets/i18n/{locale}.json",
"packages/shared/locales/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
}
}
}
```
```bash File Structure theme={null}
apps/
├── web/src/locales/
│ ├── en.json
│ └── fr.json
├── mobile/assets/i18n/
│ ├── en.json
│ └── fr.json
packages/shared/locales/
├── en/
│ ├── common.json
│ └── auth.json
└── fr/
├── common.json
└── auth.json
```
### Cross-Platform Project
```json Configuration theme={null}
{
"localeFilePatterns": [
"src/web/{locale}.json",
"ios/MyApp/{locale}.lproj/Localizable.strings",
"android/app/src/main/res/values-{locale}/strings.xml"
],
"formatOptions": {
"json": {
"nested": true
},
"xml": {
"nested": false
}
},
"customLocaleNames": {
"en-US": "en",
"fr-FR": "fr",
"es-ES": "es"
},
"placeholderTransformation": "default"
}
```
```bash File Structure theme={null}
src/web/
├── en.json
├── fr.json
└── es.json
ios/MyApp/
├── en.lproj/
│ └── Localizable.strings
├── fr.lproj/
│ └── Localizable.strings
└── es.lproj/
└── Localizable.strings
android/app/src/main/res/
├── values-en/
│ └── strings.xml
├── values-fr/
│ └── strings.xml
└── values-es/
└── strings.xml
```
### Namespace-Organized Project
```json Configuration theme={null}
{
"localeFilePatterns": [
"i18n/{feature}.{locale}.yml",
"locales/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
},
"yaml": {
"nested": true
}
}
}
```
```bash File Structure theme={null}
i18n/
├── common.en.yml
├── common.fr.yml
├── auth.en.yml
└── auth.fr.yml
locales/
├── en/
│ ├── dashboard.json
│ └── settings.json
└── fr/
├── dashboard.json
└── settings.json
```
### Namespace Project with Key Prepending
```json Configuration theme={null}
{
"localeFilePatterns": [
"locales/{locale}/{feature}.json"
],
"formatOptions": {
"json": {
"nested": true
}
},
"prependNamespaceToKeys": true
}
```
```bash File Structure theme={null}
locales/
├── en/
│ ├── auth.json → { "loginButton": "Log In", "signupButton": "Sign Up" }
│ ├── common.json → { "loginButton": "Sign In", "cancel": "Cancel" }
│ └── dashboard.json → { "welcome": "Welcome" }
└── fr/
├── auth.json → { "loginButton": "Se connecter", "signupButton": "S'inscrire" }
├── common.json → { "loginButton": "Connexion", "cancel": "Annuler" }
└── dashboard.json → { "welcome": "Bienvenue" }
```
```json Remote Keys (with prependNamespaceToKeys) theme={null}
{
"en": {
"auth.loginButton": "Log In",
"auth.signupButton": "Sign Up",
"common.loginButton": "Sign In",
"common.cancel": "Cancel",
"dashboard.welcome": "Welcome"
}
}
```
This configuration solves the duplicate key problem where `loginButton` appears in both `auth.json` and `common.json`. With `prependNamespaceToKeys: true`, they become unique remote keys: `auth.loginButton` and `common.loginButton`.
## File Structure Examples
### Nested JSON (Default)
**Configuration:**
```json theme={null}
{
"formatOptions": {
"json": {
"nested": true
}
}
}
```
**Output:**
```json theme={null}
{
"auth": {
"login": {
"title": "Sign In",
"email": "Email Address",
"password": "Password"
}
},
"navigation": {
"home": "Home",
"about": "About"
}
}
```
### Flat JSON
**Configuration:**
```json theme={null}
{
"formatOptions": {
"json": {
"nested": false
}
}
}
```
**Output:**
```json theme={null}
{
"auth.login.title": "Sign In",
"auth.login.email": "Email Address",
"auth.login.password": "Password",
"navigation.home": "Home",
"navigation.about": "About"
}
```
### XML Structure
**Configuration:**
```json theme={null}
{
"formatOptions": {
"xml": {
"nested": false
}
}
}
```
**Output:**
```xml theme={null}
Sign In
Email Address
Home
```
## Configuration Validation
### Common Validation Errors
**Missing Locale Placeholder:**
```
Error: No {locale} placeholder found in pattern: src/translations/*.json
```
**No Files Matched:**
```
Warning: Pattern 'locales/{locale}.json' matched no files. Check your file structure.
```
**Invalid Pattern Syntax:**
```
Error: File path structure doesn't match pattern: src/en/common.json vs src/{locale}.json
```
**Locale Mapping Issues:**
```
Warning: Some translations for locale 'fr' have been generated but not written locally.
Check your customLocaleNames configuration.
```
## Troubleshooting
### Configuration Issues
**No files detected:**
* Check pattern syntax
* Verify file paths are correct
* Test patterns with file system tools
**Wrong files included:**
* Add exclusion patterns
* Make patterns more specific
* Check for conflicting patterns
**Format errors:**
* Validate JSON syntax
* Check property names and values
* Review format-specific options
### Recovery
**Reset configuration:**
```bash theme={null}
rm -rf .gleef/
gleef init
```
## Next Steps
Learn advanced file pattern matching techniques
Master format-specific configuration options
# Installation
Source: https://docs.gleef.eu/cli/getting-started/installation
Install and set up Gleef CLI on your development environment
Gleef CLI requires Node.js 18.0.0 or higher to run properly.
## Installation
We recommend using `npx` to run Gleef CLI without global installation. This ensures you always use the latest version and avoids permission issues.
Run Gleef CLI directly with npx (no installation required):
```bash theme={null}
npx @gleef/cli --version
```
For easier access, create an alias in your shell profile:
```bash theme={null}
# Add to ~/.bashrc, ~/.zshrc, or your shell config
alias gleef="npx @gleef/cli"
# Then use normally
gleef --version
gleef init
gleef push
```
If you prefer global installation for frequent use:
The Gleef CLI is updated frequently with new features and bug fixes. With global installation, you'll need to manually update to get the latest version.
```bash theme={null}
npm install -g @gleef/cli
```
Or using yarn:
```bash theme={null}
yarn global add @gleef/cli
```
Then verify the installation:
```bash theme={null}
gleef --version
```
Before using the CLI, you'll need a Gleef API key:
1. Visit [https://app.gleef.eu/settings/api-keys](https://app.gleef.eu/settings/api-keys)
2. Generate a new API key for CLI access
3. Copy the key for the next step
Log in to Gleef using your API key:
```bash theme={null}
gleef login
```
You'll be prompted to enter your API key. Alternatively, you can provide it directly:
```bash theme={null}
gleef login --key YOUR_API_KEY
```
## Verification
To verify everything is set up correctly, run:
```bash theme={null}
gleef --help
```
You should see the list of available commands:
```
USAGE
$ gleef COMMAND
COMMANDS
help Display help for gleef
init Initialize Gleef in your project
login Authenticate with Gleef
pull Get latest translations from Gleef
push Push local translations to Gleef without AI generation
translate Translate using Gleef and makes keys available to your team
```
## Updating the CLI
**If using npx (recommended):** No action needed! You automatically get the latest version each time you run the command.
**If using global installation:** Update to the latest version:
```bash theme={null}
npm update -g @gleef/cli
```
Or with yarn:
```bash theme={null}
yarn global upgrade @gleef/cli
```
## Troubleshooting Installation
### Permission Issues (macOS/Linux)
**Recommended solution:** Use `npx @gleef/cli` instead of global installation to avoid permission issues entirely.
**If you need global installation:** You may need to use `sudo`:
```bash theme={null}
sudo npm install -g @gleef/cli
```
**Better alternative:** Configure npm to use a different directory for global packages:
```bash theme={null}
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
```
### Windows Installation
On Windows, you may need to run the command prompt as Administrator:
1. Right-click on Command Prompt or PowerShell
2. Select "Run as Administrator"
3. Run the installation command
### Node.js Version Issues
If you see errors about Node.js version compatibility:
1. Check your Node.js version: `node --version`
2. Update Node.js to version 18.0.0 or higher
3. Consider using a Node.js version manager like `nvm`
## Next Steps
Get started with your first project
Learn how to initialize Gleef in your project
# Introduction
Source: https://docs.gleef.eu/cli/getting-started/introduction
Learn about Gleef CLI, a powerful command-line tool for managing translations and localization workflows.
Have any questions or feedback? Book [15 minutes](https://booking.gleef.eu/team/gleef/get-in-touch) with the team, or [email us](mailto:contact@gleef.eu).
## What is Gleef CLI?
The Gleef CLI is a powerful command-line tool that helps developers and teams manage their localization workflows efficiently. It enables you to sync translation projects, generate AI-powered translations, and maintain consistent localization files across your applications.
## Purpose
Gleef CLI bridges the gap between your local development environment and the Gleef translation platform, allowing you to:
* Automatically detect and manage localization files in your project
* Push new translation keys for AI-powered translation
* Pull the latest translations from your team
* Maintain version control and conflict resolution for translation files
## Key Features
**Intelligent File Detection:**
* Automatically discovers JSON, XML, YAML, and .strings files in your project
* Configurable file patterns and directory structures
* Respects .gitignore patterns to avoid irrelevant files
**AI-Powered Translation:**
* Context-aware translations that understand your product and brand voice
* Batch processing for efficient translation workflows
* Support for multiple target languages simultaneously
**Team Collaboration:**
* Seamless integration with Gleef Studio for team review workflows
* Conflict detection and resolution for concurrent edits
* Version tracking and change management
**Developer-Friendly:**
* Simple command-line interface with intuitive commands
* Flexible configuration options
* Integration-ready for CI/CD pipelines
**Multi-Format Support:**
* JSON (nested and flat structures)
* XML localization files
* YAML/YML files
* iOS .strings files
## System Requirements
Gleef CLI works with any tech stack and development environment
**Node.js Requirements:**
* Node.js version 18.0.0 or higher
* npm or yarn package manager
**Project Requirements:**
* Existing localization files (JSON, XML, YAML, or .strings)
* Git repository (recommended for version control)
**User Requirements:**
* Basic understanding of localization concepts
* Gleef account with API access
## Benefits of Using Gleef CLI
1. **Streamlined Development Workflow:**
* Eliminate manual translation file management
* Reduce context switching between development and translation tools
* Automated synchronization with your translation team
2. **Enhanced Translation Quality:**
* AI-powered translations with contextual understanding
* Consistent terminology across your application
* Team review process for quality assurance
3. **Developer Productivity:**
* Simple command-line interface
* Batch operations for efficiency
* Integration with existing development tools
4. **Team Collaboration:**
* Centralized translation management
* Real-time synchronization with team members
* Conflict resolution and change tracking
## Getting Started
Install Gleef CLI globally and set up authentication
Get up and running with your first translation project
## Next Steps
Learn about all available CLI commands
Understand the complete translation workflow
# Quick Start
Source: https://docs.gleef.eu/cli/getting-started/quickstart
Get up and running with Gleef CLI in minutes
This guide will walk you through setting up your first translation project with Gleef CLI in just a few minutes.
## Prerequisites
Before starting, make sure you have:
* [Installed Gleef CLI](/cli/getting-started/installation)
* [Authenticated with your API key](/cli/getting-started/installation#authenticate-with-gleef)
* A project with existing localization files (JSON, XML, YAML, or .strings)
## Step-by-Step Setup
Open your terminal and navigate to your project directory:
```bash theme={null}
cd /path/to/your/project
```
Run the initialization command to set up Gleef in your project:
```bash theme={null}
gleef init
```
This command will:
* Prompt you to enter your locale file pattern using `{locale}` placeholder
* Validate the pattern by loading your existing files
* Map file/folder names to company locales if needed
* Create a `.gleef/config.json` configuration file
### Common Patterns by Technology
Here are typical patterns you might enter based on your stack:
```bash React/Next.js theme={null}
public/locales/{locale}.json
# or for namespaced:
src/locales/{locale}/{feature}.json
```
```bash Vue/Nuxt.js theme={null}
locales/{locale}.json
# or for namespaced:
lang/{locale}/{feature}.json
```
```bash Angular theme={null}
src/assets/i18n/{locale}.json
# or for feature-based:
src/app/{feature}/i18n/{locale}.json
```
```bash iOS (Swift) theme={null}
ios/MyApp/{locale}/{feature}.strings
```
```bash Android theme={null}
android/app/src/main/res/{locale}/strings.xml
```
```bash Rails theme={null}
config/locales/{locale}.yml
# or for namespaced:
config/locales/{locale}/{feature}.yml
```
```bash Laravel theme={null}
lang/{locale}.json
# or for PHP arrays:
resources/lang/{locale}/{feature}.php
```
Always use the `{locale}` placeholder in your pattern - it's required for proper locale detection.
After entering your pattern and mapping any locales, you'll see output like:
```bash theme={null}
✔ One pattern added successfully. You can add more in your config file.
src/locales/{locale}.json
Run `gleef push` to start pushing your translations
To customize nested/flat output per format, edit the formatOptions in .gleef/config.json
```
Check the generated `.gleef/config.json` file to verify the configuration matches your project structure.
Upload your existing translation keys to Gleef:
```bash theme={null}
gleef push --skip-review
```
This will:
* Analyze your local translation files
* Send new and modified keys to Gleef
* Publish all translations without asking your team for review (similar to an initial commit)
`gleef push` is the standard command for sending new and updated translations to Gleef. Use `gleef translate` when you want to generate AI translations and merge them back into your local files in one step.
You'll see progress output like:
```
Pushing 15 new translations
✔ Your translations were pushed successfully.
```
After translations are reviewed and approved in Gleef Studio, sync them back:
```bash theme={null}
gleef pull
```
This updates your local files with the latest approved translations.
## Example Project Structure
Here's an example of how Gleef CLI works with a typical project structure:
```
my-app/
├── src/
│ └── locales/
│ ├── en-US.json
│ ├── fr-FR.json
│ └── es-ES.json
├── .gleef/
│ └── config.json
└── .gitignore
```
**Before initialization:** Only the locale files exist
**After `gleef init`:** Configuration is created
**After `gleef push`:** Keys are sent to Gleef
**After `gleef pull`:** Local files are updated with new translations
## Configuration File Example
After running `gleef init`, you'll have a `.gleef/config.json` file like this:
```json theme={null}
{
"localeFilePatterns": [
"src/locales/{locale}.json"
],
"formatOptions": {
"json": {
"nested": true
}
},
"customLocaleNames": {
"en-US": "english",
"fr-FR": "french"
}
}
```
The configuration includes:
* **localeFilePatterns**: Your pattern with `{locale}` placeholder
* **formatOptions**: Auto-detected based on your file types
* **customLocaleNames**: Only added if your files don't match standard locale names
## Common Workflows
All commands can be added to your CI/CD or build scripts to automate updating or creating translations.
### Adding New Translation Keys
1. Add new keys to your base language file (e.g., `en-US.json`)
2. Run `gleef push` to send them to Gleef
3. Review translations in Gleef Studio
4. Run `gleef pull` to sync approved translations
### Updating Existing Translations
1. Modify existing keys in your local files
2. Run `gleef push` to upload the updates
3. Review changes in Gleef Studio
4. Run `gleef pull --add-new` to sync all updates
### Working with Multiple Developers
1. Each developer runs `gleef pull` before starting work
2. Make translation changes locally
3. Run `gleef push` to upload changes
4. Coordinate reviews in Gleef Studio
5. Run `gleef pull` to get the latest approved translations
## Next Steps
Explore all available CLI commands and their options
Understand advanced workflows and best practices
Customize Gleef CLI for your project needs
Solve common issues and get help
# Troubleshooting
Source: https://docs.gleef.eu/cli/support/troubleshooting
Solve common issues and problems with Gleef CLI
This guide covers common issues you might encounter when using Gleef CLI and provides step-by-step solutions to resolve them.
## Installation Issues
### Node.js Version Compatibility
**Error:**
```bash theme={null}
npm ERR! engine Unsupported engine
npm ERR! Required: node >=18.0.0
npm ERR! Actual: v16.14.0
```
**Solution:**
1. **Check current version:** `node --version`
2. **Update Node.js:** Download latest from [nodejs.org](https://nodejs.org)
3. **Or use nvm:**
```bash theme={null}
# Install nvm (if not installed)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install and use Node.js 18+
nvm install 18
nvm use 18
```
### Permission Errors
**Error:**
```bash theme={null}
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/@gleef
```
**Solution (macOS/Linux):**
```bash theme={null}
# Option 1: Use sudo (not recommended)
sudo npm install -g @gleef/cli
# Option 2: Configure npm to use user directory (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
npm install -g @gleef/cli
```
**Solution (Windows):**
1. Run Command Prompt as Administrator
2. Install the CLI: `npm install -g @gleef/cli`
### Network/Firewall Issues
**Error:**
```bash theme={null}
npm ERR! network request to https://registry.npmjs.org/@gleef%2fcli failed
```
**Solution:**
1. **Check internet connection**
2. **Configure corporate proxy:**
```bash theme={null}
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
```
3. **Use different registry:**
```bash theme={null}
npm install -g @gleef/cli --registry https://registry.yarnpkg.com
```
## Authentication Issues
### Invalid API Key
**Error:**
```bash theme={null}
The given API key doesn't seem to be valid. Please check your key and try again.
```
**Solution:**
1. **Verify key format:** API keys start with `gl_` followed by alphanumeric characters
2. **Check for extra characters:** Remove any spaces or newlines from the key
3. **Generate new key:** Visit [https://app.gleef.eu/settings/api-keys](https://app.gleef.eu/settings/api-keys)
4. **Re-authenticate:**
```bash theme={null}
gleef login --key YOUR_NEW_API_KEY
```
### Authentication Storage Issues
**Error:**
```bash theme={null}
Error: Could not save API key to configuration file
```
**Solution (macOS/Linux):**
```bash theme={null}
# Check permissions on config directory
ls -la ~/.config/gleef/
# Fix permissions if needed
mkdir -p ~/.config/gleef
chmod 755 ~/.config/gleef
```
**Solution (Windows):**
```cmd theme={null}
# Check if directory exists
dir %APPDATA%\gleef
# Create if missing
mkdir %APPDATA%\gleef
```
### Network Authentication Issues
**Error:**
```bash theme={null}
Error: Network request failed - getaddrinfo ENOTFOUND api.gleef.eu
```
**Solution:**
1. **Check DNS:** `nslookup api.gleef.eu`
2. **Try different DNS:**
```bash theme={null}
# Use Google DNS
export DNS_SERVER=8.8.8.8
```
3. **Corporate firewall:** Contact IT to whitelist `*.gleef.eu`
4. **VPN issues:** Try without VPN or with different VPN server
## Configuration Issues
### No Files Detected During Init
**Error:**
```bash theme={null}
⚠ No locale files found in your project
```
**Solutions:**
1. **Check file extensions:**
```bash theme={null}
# Verify you have supported files
find . -name "*.json" -o -name "*.xml" -o -name "*.yaml" -o -name "*.strings"
```
2. **Check .gitignore exclusions:**
```bash theme={null}
# See what files are being ignored
git check-ignore -v src/locales/*.json
```
3. **Manual configuration:**
```json theme={null}
{
"localeFilePatterns": [
"path/to/your/locale/files/*.json"
]
}
```
### Invalid Configuration File
**Error:**
```bash theme={null}
Error: Invalid configuration file at .gleef/config.json
```
**Solution:**
1. **Validate JSON syntax:**
```bash theme={null}
cat .gleef/config.json | jq empty
```
2. **Common JSON errors:**
* Missing quotes around keys
* Trailing commas
* Unclosed brackets/braces
3. **Reset configuration:**
```bash theme={null}
rm -rf .gleef/
gleef init
```
### Pattern Matching Issues
**Error:**
```bash theme={null}
Warning: Pattern 'src/**.json' matched no files
```
**Solution:**
1. **Fix pattern syntax:**
```json theme={null}
{
"localeFilePatterns": [
"src/**/*.json"
]
}
```
2. **Test patterns:**
```bash theme={null}
# Test with shell
ls src/**/*.json
# Test with find
find . -path "src/**/*.json"
```
## Command Execution Issues
### "Nothing new to push" When Expecting Changes
**Issue:** Running `gleef push` shows no changes despite having new keys.
**Solutions:**
1. **Check if files have actual changes:**
```bash theme={null}
git diff src/locales/
```
2. **Verify configuration patterns or run:**
```bash theme={null}
gleef init
```
3. **Check for conflicts:**
```bash theme={null}
gleef pull --check
```
4. **Reset and retry:**
```bash theme={null}
gleef pull
gleef push
```
### Pull Command Not Updating Files
**Issue:** `gleef pull` claims to update files but no changes appear locally.
**Solutions:**
1. **Check file permissions:**
```bash theme={null}
ls -la src/locales/
chmod 644 src/locales/*.json
```
2. **Verify files match patterns:**
```bash theme={null}
gleef init --list-files
```
3. **Check if translations are approved in Gleef Studio**
4. **Force full sync:**
```bash theme={null}
gleef pull --add-new
```
5. **Remove `.gleef/lock.json`**
### Conflict Resolution Issues
**Error:**
```bash theme={null}
Conflict with remotely edited translations. Update keys with the remote value, or change them from the webapp.
```
**Solutions:**
1. **Accept remote changes:**
```bash theme={null}
gleef pull # Get remote version
gleef push # Push remaining changes
```
2. **Keep local changes:**
* Update the conflicting key in Gleef Studio to match your local version
* Run `gleef push` again
3. **Manual resolution:**
* Decide on the correct value
* Update both locally and in Gleef Studio
* Run `gleef push`
## File Format Issues
### JSON Syntax Errors
**Error:**
```bash theme={null}
Couldn't push translations: Invalid JSON in locale file
```
**Solution:**
1. **Find the problematic file:**
```bash theme={null}
# Check each JSON file
for file in src/locales/*.json; do
echo "Checking $file"
cat "$file" | jq empty || echo "Error in $file"
done
```
2. **Common JSON issues:**
* Trailing commas: `{"key": "value",}` → `{"key": "value"}`
* Unescaped quotes: `"He said "hello""` → `"He said \"hello\""`
* Missing commas: `{"a": "b" "c": "d"}` → `{"a": "b", "c": "d"}`
3. **Fix with automated tools:**
```bash theme={null}
# Use jq to format properly
jq . src/locales/en.json > temp.json && mv temp.json src/locales/en.json
```
### XML Format Issues
**Error:**
```bash theme={null}
Error parsing XML file: src/locales/strings.xml
```
**Solution:**
1. **Validate XML:**
```bash theme={null}
xmllint --noout src/locales/strings.xml
```
2. **Common XML issues:**
* Unclosed tags: `value` → `value`
* Invalid characters: `&` → `&`, `<` → `<`, `>` → `>`
* Missing declarations: Add ``
### YAML Format Issues
**Error:**
```bash theme={null}
Error parsing YAML file: Invalid YAML syntax
```
**Solution:**
1. **Validate YAML:**
```bash theme={null}
yq empty src/locales/en.yml
```
2. **Common YAML issues:**
* Indentation: Use consistent spaces (not tabs)
* Missing quotes: `key: value with: colon` → `key: "value with: colon"`
* List formatting: Ensure proper `-` spacing
## Performance Issues
### Slow Translation Processing
**Issue:** `gleef push` or `gleef translate` takes very long to complete.
**Solutions:**
1. **Use pattern matching:**
```bash theme={null}
# Process specific keys only
gleef push --match "^component\."
```
2. **Check file sizes:**
```bash theme={null}
# Find large files that might slow processing
find src/locales -name "*.json" -exec wc -l {} + | sort -n
```
3. **Optimize patterns:**
```json theme={null}
{
"localeFilePatterns": [
"src/locales/*.json",
"!**/*test*.json",
"!**/node_modules/**"
]
}
```
### High Memory Usage
**Issue:** CLI uses excessive memory during processing.
**Solutions:**
1. **Process files in batches:**
```bash theme={null}
gleef push --match "^auth\."
gleef push --match "^nav\."
```
2. **Reduce file sizes:** Split large translation files into smaller ones
3. **Close other applications:** Free up system memory
## Recovery Procedures
### Complete Reset
If you encounter persistent issues, try a complete reset:
```bash theme={null}
# 1. Backup your files
cp -r src/locales src/locales.backup
# 2. Remove configuration
rm -rf .gleef/
# 3. Clear authentication
rm -rf ~/.config/gleef # macOS/Linux
# or
rmdir /s %APPDATA%\gleef # Windows
# 4. Reinstall CLI
npm uninstall -g @gleef/cli
npm install -g @gleef/cli
# 5. Re-authenticate and initialize
gleef login
gleef init
# 6. Pull all translations
gleef pull --add-new
# 7. Restore files if needed
cp -r src/locales.backup/* src/locales/
```
### Configuration Recovery
If your configuration is corrupted:
```bash theme={null}
# 1. Backup current config
cp .gleef/config.json .gleef/config.json.backup
# 2. Regenerate configuration
rm .gleef/config.json
gleef init
# 3. Manually merge any custom settings from backup
```
### File Recovery
If translation files are corrupted:
```bash theme={null}
# 1. Check git history
git log --oneline src/locales/
# 2. Restore from git
git checkout HEAD~1 -- src/locales/
# 3. Or pull fresh from Gleef
gleef pull --add-new
```
## Getting Help
### Diagnostic Information
When reporting issues, include this diagnostic info:
```bash theme={null}
# System information
gleef --version
node --version
npm --version
# Configuration
cat .gleef/config.json
# File patterns test
gleef init
# Network test
curl -I https://api.gleef.eu/
```
### Log Files
Enable verbose logging for debugging:
```bash theme={null}
gleef push 2>&1 | tee gleef.log
```
Contact Gleef to enable verbose/debug mode.
### Support Channels
* **Documentation:** [docs.gleef.eu](https://docs.gleef.eu)
* **Email:** [support@gleef.eu](mailto:support@gleef.eu)
* **Chat:** [15 minutes](https://booking.gleef.eu/team/gleef/get-in-touch)
## Next Steps
Learn techniques to prevent common issues and optimize your workflow
Review all available commands and their options
# Introduction
Source: https://docs.gleef.eu/figma-plugin/getting-started/introduction
Have any question or feedback? Book [15 minutes](https://booking.gleef.eu/team/gleef/get-in-touch) with the team or [email us](mailto:contact@gleef.eu).
## Why Use Gleef in Figma
Automatically generate, retrieve, and translate localization content, right in Figma.
## Purpose
Generate & retrieve existing localization keys with AI while also performing context-aware translations directly within Figma.
No need to worry about naming conventions or formatting issues - we automatically normalize your localization keys and create them with a single click.
## Key Features
**Seamless Figma Integration:**
* Fully integrated into Figma as a plugin for a smooth user experience.
* Assign localization keys to design elements with ease.
**Key Management Made Simple:**
* Create, edit, and delete localization keys directly in Figma.
* Avoid duplicates with real-time key validation.
**AI-powered Capabilities:**
* Generate localization keys that match the context and screen.
* Automatic formatting that conforms to your existing patterns.
* Context-aware AI translations that understand your product and brand voice.
**Contextual Preview:**
* Preview translations directly on your designs to validate layouts and context.
* Test multiple languages simultaneously to ensure your design works across regions.
**Works with Any Workflow:**
* Compatible with any localization software or tool.
* Easily integrate into existing processes.
**Developer-Ready Exports:**
* Export keys in *JSON*, *CSV*, or *XML* formats.
* Effortlessly hand off files to developers or translation teams.
## System Requirements
Gleef's Figma Plugin works with every tech stack & technology
**Figma Requirements:**
* To run the plugin, you don't need any special permissions in Figma.
* To display generated keys and translations, you'll need editing rights on the Figma file.
**User Requirements:**
* Basic understanding of localization concepts.
## Benefits of Using Gleef
1. **Eliminate unnecessary developer and designer tasks:**
* Reduce the time needed to generate, reuse, and translate content.
* Streamline communication between design and development teams.
2. **Developer-Friendly outputs:**
* Export ready-to-use files in multiple formats.
* Simplify developer workflows with clear, structured data.
3. **Easy to use:**
* No complex setup or coding required.
* Start managing localization in minutes.
## Setting up Gleef
Visit the Figma Community page to install Gleef.
Open the plugin, import existing keys and start managing your localization content.
## Gleef's interaction with your Figma
How real-time displaying works.
Data privacy is key to Gleef: more information about Gleef's GDPR compliance here.
# Quickstart
Source: https://docs.gleef.eu/figma-plugin/getting-started/quickstart
## Overview
This section guides you through installing and setting up the Gleef Figma Plugin in your project.
Install the plugin directly from the Figma community marketplace into your project.
Access the plugin [here](http://figma.gleef.eu).
Create a Gleef account directly within the plugin interface.
You need to be part of the same Gleef team to share translations. If you don't have access to the Gleef Studio to manage your team, please [contact us](contact@gleef.eu).
Specify the language you're currently using in Figma so that Gleef can accurately match your existing keys with your designs. Then, select the languages you want to include for AI translation.
Select one or several frame(s) in your Figma project with the plugin open, then click "Generate". The process typically takes between 10-60 seconds.
For more details on generation, refer to our [documentation](/docs).
With your frame selected, you can now view all keys and translations that were retrieved or generated. You can easily:
* Preview translations
* Click on elements to focus them in the frame
* Edit keys and translations
* Exclude specific items from export
* Export keys and translations in multiple formats
Tired of dealing with file exports and painful localization processes? Use the [Gleef Studio]() and [Gleef CLI]() to collaborate with your team.
Don't hesitate to reach out if you have any questions or issues to report.
# Export keys
Source: https://docs.gleef.eu/figma-plugin/how-to/export-keys
If you're tired of exchanging files with your team, head to the Gleef Studio and push your changes instantly. You can also ask your team to review your changes. [Book a demo](https://booking.gleef.eu/antoine/demo).
Once you have [created keys and translations](/figma-plugin/how-to/manage-keys) for a specific frame, you might want to export them.
## How to export translations and localization keys?
1. Select one or several frames you want to export translations from.
2. Click on the **Export** button in the Plugin.
3. Click on the **Download the export** button.
4. Choose the format you want to export keys in.
## How to merge the Gleef translations with my existing content?
1. Select one or several frames you want to export translations from.
2. Click on the **Export**
3. Click on **Merge with existing files**
4. Select all your existing locale files (all languages).
You will get a zip files with your updated localization files!
You don't have to worry about your file names when merging them.
Gleef will automatically recognize the locale, as long as the name describes the language (for example "english.json", "en.json", "en-US.json" or even "ingles.json")
## Export formats
You can choose between 3 main formats, the most commonly used in localization:
* CSV
* XML
* JSON
For the JSON and XML formats, you will get a .zip file containing a file per language.
### Exporting in CSV
CSV is the most commonly used format when humans are expected to review or edit the content. It is easy to read and write, and can be opened with any spreadsheet software.
It can also be imported into all the main localization softwares.
### Exporting in XML
XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It is often used in localization to export keys in a structured format.
Format will be:
```xml theme={null}
value1
value2
```
### Exporting in JSON
JSON is a lightweight data-interchange format. It is easy for humans to read and write and easy for machines to parse and generate. It is often used by localization libraries to manage keys in a structured format.
You have 2 options here:
1. **Merge with an existing file (.json)**: If you already have a JSON file with keys, you can merge the keys from the Plugin with the existing file. The Plugin will add the new keys to the existing file, and will not overwrite the existing keys.
2. **Export as a new file (.json)**: If you don't have a JSON file with keys, you can export the keys from the Plugin as a new file. Or if you want to integrate manually these new keys in your current file.
## Import back
When exporting keys, as you might or not used the keys in your project, it is highly recommended to **import back the updated whole file**, so that the knowledge is updated with existing keys.
See how to update the knowledge base by importing keys [here](/figma-plugin/how-to/import-keys).
# Generate keys
Source: https://docs.gleef.eu/figma-plugin/how-to/generate-keys
Generating localization keys is a breeze with Gleef. Here is how it works:
Open the Gleef plugin in Figma. You can find it in the Plugins menu.
Select the frame you want to generate keys for.
It is highly recommended to select a frame containing your **whole screen** to maximize the context, enabling efficient key generation.
If you select a frame containing only a part of the screen, Gleef will generate keys for that part only. This can lead to missing keys or keys that are not relevant to the whole screen.
If you select a frame containing multiple screens, Gleef will generate keys for all of them. This can lead to duplicate keys or keys that are not relevant to the whole screen.
Here is an example at what should be selected: Checkout\_AddAddress frame
Check out [our documentation](/figma-plugin/support/QA#generating-keys) to understand how does frame selection and generation works.
Once keys are generated, you can manage them in the Gleef plugin. You can edit and ignore keys as well as display them dynamically in your Figma, and export them.
[Check it out here](/figma-plugin/how-to/manage).
# Import keys
Source: https://docs.gleef.eu/figma-plugin/how-to/import-keys
In order to have the best experience using the Figma Plugin, use the Gleef Studio and Gleef CLI to easily manage your translations and avoid file export/import.
## Why importing existing keys?
Importing existing keys in the Plugin has 2 main benefits:
* Existing translations will help improve the Gleef AI performance for your project
* Keys generated by the Plugin thereafter will be consistent with your current pattern: e.g. delimiters used, nomenclature etc.
* Keys can be re-used if they already exist in your localization files.
## How to import existing keys?
It depends on your current localization stack:
### With a localization software
If you are using a localization software, you can export your localization keys to a CSV or JSON file and import it in the Plugin.
The process depends on which localization software you use.
You can [contact us](mailto:support@gleef.eu) if you need help exporting your keys.
### Without a localization software
If you are not using a localization software, you can directly import the file you use to manage your localization keys and variables.
You can import XML, CSV, or JSON files.
Any issue while importing your current keys? [Contact us](mailto:support@gleef.eu)
## When importing existing keys?
### Onboarding
During the onboarding, you can import existing keys to improve the performance of the Gleef AI.
### After onboarding
Thereafter, at any time, you can easily import your localization keys in the Plugin.
Regularly importing your localization files will enable updating your keys in the Plugin, so that it stays up to date, generates accurate keys, and reuses existing ones.
You won't see how many files you've already imported, because Gleef doesn't store your files, but vectorise all the keys, generating embeddings in a database specific to your company.
You'll just see the last update date so that you might know if the Plugin database is up to date or not.
You wanna know more on how we store your data, and how to update your keys? Have a look at our [specific documentation](/figma-plugin/support/embeddings).
# Install Figma Plugin
Source: https://docs.gleef.eu/figma-plugin/how-to/install
Gleef's Figma Plugin is compatible whatever your current localization process.
## Installation
Follow these simple steps to install our plugin and get it work on your Figma.
Install the plugin from the Figma community, directly in your project.
You can find the plugin [here](http://figma.gleef.eu).
Once installed, you can easily open the Plugin wherever you need to create or manage localization keys.
# Manage keys
Source: https://docs.gleef.eu/figma-plugin/how-to/manage-keys
You'll first need to generate keys for the selected frame. If you don't know how to, please [read this guide](/figma-plugin/how-to/generate-keys).
Once you have generated keys, you can manage them using the Gleef Plugin.
## Get an overview of your frame
Make sure you have selected the frame you want to manage keys for. By default, we'll be showing generated keys of the **top-level frame (or root)**.
## Overview Details
The overview show 3 different things:
1. **Frame Name:** The name of the frame you have selected.
2. **Display keys:** A toggle option that enables you to display keys on the selected frame (instead of the current text).
3. **Generated Keys:** All keys and text elements taken into account.
## Displaying keys
The Gleef Figma Plugin allows you to display keys on the selected frame. This is useful for debugging purposes as well as when coding the frame.
You can toggle this option on and off using the toggle option in the overview.
If you don't toggle back, keys will stay until you toggle again. Keys are **hard written** in the frame, meaning you can't access original text below.
You can't lose content using Gleef, as everything is saved in the database. you just need to use toggle in order to go back to the previous step.
You can also use **ctrl + Z** (or **cmd + Z** for Mac users) to go back to previous state.
No worries, everything is saved in Figma, if you want to know more, [check this out](/figma-plugin/support/QA#displaying-keys).
## Managing generated keys
Once generated, you'll be able to access the generated lists. You can access 4 different lists:
1. **All keys:** All keys and text elements taken into account. This is the default list.
2. **Keys in sync:** Text elements that have a key assigned, and that are currently in sync (meaning taken into account for the display and in the export).
3. **Text elements ignored:** Text elements (with or without a key assigned) that are ignored (meaning **not** taken into account for the display and in the export).
4. **Text elements not in sync:** Text elements that have no key assigned. *This can happen when you generate keys, then add a text element to the frame, meaning this element has no keys generated.*
### Existing keys
Existing keys - meaning keys that you have uploaded in Gleef with an import ([see more here](/figma-plugin/how-to/import-keys)) - are displayed in the list with a tag 'Existing'.
It's a reminder that this key already exists in the database, and thus, the value linked to that key will be the one saved in the knowledge base.
If you want to add new keys in the knowledge base, [see this topic](/figma-plugin/how-to/import-keys).
### Edit key name
You can edit the key name by clicking on the edit button (pencil), choose a new key name and then save.
You can't have duplicated keys in one screen. Therefore you won't be able to save the key name if it's already used in the same screen.
### Ignore key
If you don't want to take into account a text element for the display and the export, you can ignore it. To do so, click on the ignore button (syncro button crossed out).
### Focus a key
By clicking on a key name, you can focus and select the corresponding text element in the canvas. This is useful when you have a lot of text elements in your screen.
### Define missing keys
If after having generated your screen you add new text element, they won't have any key assigned. Therefore, you have 2 options:
1. Define new keys manually.
2. Generate new key for the missing ones, considering the whole screen.
### Export keys
You can export your keys by clicking on the export button. [Click here](/figma-plugin/how-to/export-keys) to know more about export options.
# Get an account
Source: https://docs.gleef.eu/figma-plugin/how-to/signup
Using the key generation is currently free, with a rate limit. If you need to exceed this limit, please [contact us](mailto:contact@gleef.eu)
## Sign Up
Follow these steps to quickly set up your account and start automatically generating localization keys from your Figma designs.
Start by [downloading our Figma Plugin](http://figma.gleef.eu).
Sign up using either your professional email to register in just a few seconds.
After registration, you'll need to confirm your email to activate your account.
Once logged into the extension, you'll be prompted to upload your current localization keys file.
We highly recommend that you provide a file, for many reasons:
* It ensures that the keys you generate are unique and don't conflict with existing ones.
* It allows to reuse existing keys without generating new ones when possible.
* It makes sure the pattern of generated keys is consistent with your existing one.
Not importing keys won't prevent you from generating new ones, but it will make them less useful.
Wanna know how to import existing keys in our Figma Plugin? Check out [our tutorial](/figma-plugin/how-to/import-keys).
You're all set to start automatically generating keys. You can create experiments, but they will remain drafts and won't affect your website until you upgrade your account.
Want your experiments to go live? You can upgrade your account at any time by [contacting us](mailto:support@gleef.eu).
# Crowdin x Gleef
Source: https://docs.gleef.eu/figma-plugin/integrations/crowdin
Coming soon.
# Integrations
Source: https://docs.gleef.eu/figma-plugin/integrations/integrations
The Gleef Figma plugin is primary built to be used with the [Gleef Studio]() and [Gleef CLI](). With file exports, it is compatible with any web technology and localization software.
Contact us to get a direct integration with your localization software
Coming soon.
Coming soon.
Coming soon.
Coming soon.
# Lokalise x Gleef
Source: https://docs.gleef.eu/figma-plugin/integrations/lokalise
Coming soon.
# Phrase x Gleef
Source: https://docs.gleef.eu/figma-plugin/integrations/phrase
Coming soon.
# Transifex x Gleef
Source: https://docs.gleef.eu/figma-plugin/integrations/transifex
Coming soon.
# Q&A
Source: https://docs.gleef.eu/figma-plugin/support/QA
Have any question or feedback? Book a [15 minutes](https://booking.gleef.eu/team/gleef/get-in-touch) chat or [email us](mailto:contact@gleef.eu).
## General Questions
### What is Gleef?
Gleef is on its way to revolutionize the way localization is made and handle.
### What's Gleef's mission?
Discover it directly on [our website](https://gleef.eu/about).
### What's next?
Stay up to date with our roadmap & product update by subscribing to our [monthly newsletter](https://www.gleef.eu/).
### How does Gleef's Figma Plugin work?
The Gleef Figma Plugin is a tool designed to streamline the process of extracting text from Figma designs and preparing it for translation.
It uses AI to generate localization keys automatically, understanding your company, key pattern and overall context. It will soon integrate automatic translation.
See [our tutorial](/figma-plugin/how-to/install) to begin using the Plugin.
### What is the Gleef Figma plugin, and who is it for?
The Gleef Figma plugin is designed for teams to efficiently manage translation keys and streamline localization tasks directly in Figma. It’s ideal for designers, developers, and product teams working on global products that require consistent and professional localization.
### How does Gleef save time for teams? What are the benefits?
The plugin automates with AI time-consuming tasks like key naming, searching, and managing translation files. By reducing manual work, it helps teams focus on delivering polished, localized designs faster and more efficiently.
### How does Gleef Figma help maintain project organization?
The plugin allows you to easily track translated and pending keys, ensuring your localization projects stay on schedule. It also adheres to your project’s naming conventions, preventing duplication and maintaining clarity across files.
### What are the key features of the Figma Plugin?
* **Time-saving automation**: Automates naming and searching of translation keys.
* **Workflow optimization**: Ensures consistent naming conventions and avoids duplicate keys.
* **Project organization**: Tracks the status of translations (translated vs. pending).
* **Code quality**: Maintains formatting consistency across localization files for a professional finish.
### How does Gleef Figma Plugin integrate into your Figma workflow?
Here’s how you can use Gleef Figma:
1. **Import your localization files**: Upload your existing files to get started.
2. **Select the source language**: Set the language used in your designs as the source.
3. **Choose screens/frames**: Pick the specific Figma frames or screens you want to localize.
4. **Adjust keys**: Review and refine the generated or re-used keys for accuracy.
5. **Export ready files**: Export keys to your preferred localization tool or copy them into your IDE.
### Is Gleef Figma Plugin compatible with all localization tools?
Yes! The plugin generates ready-to-use localization files that can be imported into any localization software or directly copied into your IDE for seamless integration into your development process.
Direct integrations with most used localization software such as Phrase or Lokalise. Find more info [here](/figma-plugin/integrations).
### How much does it cost?
The plugin offers a free version with core features of key management. It includes a token limitation with an hourly rate.
For advanced functionalities, such as bulk processing, enhanced key management, premium support and removing the token limitation please [reach out](contact@gleef.eu).
***
## Knowledge base
Knowledge base is made of existing localization keys and their value. It's stored as embeddings in Gleef's vector database, enabling accurate key generation. Find more info about data usage [here](/figma-plugin/support/security-privacy#Data-retention)
### How does Gleef Figma handle localization keys?
Gleef Figma generates localization keys based on your design’s text content and the knowledge base. It uses AI to understand and suggest appropriate keys, ensuring consistency and reducing manual effort. You can also manually adjust these keys to fit your project’s naming conventions.
### How to update the knowledge base?
When generating keys or exporting files, the knowledge base isn't updated. Because there's no insurance these keys will be integrated in your code base.
The only way to update the knwoledge base is by importing file containing up to date localization keys. [See how](/figma-plugin/how-to/import-keys).
### Can existing localization keys be reused?
Yes, existing keys - the one in the knowledge base ([see how to import keys here](/figma-plugin/how-to/import-keys)) - can be automatically reused when generating new keys with Gleef's AI. This ensures consistency and reduces manual effort.
You can edit a key name after generation to unlink the key and make sure it creates a new key for this specific text element.
### Which value will be used when re-using an existing key?
When reusing an existing key, Gleef will use the value from the current frame, and not the one saved in the knowledge base.
In order to update the knowledge base, you'll have to [import a file containing the updated keys](/figma-plugin/how-to/import-keys).
### Is my project data secure when using the plugin?
Yes, data security is a top priority. The plugin processes your localization data securely and does not retain any sensitive information. [Learn more about our security measures here](/figma-plugin/support/security-privacy).
### Can I use the plugin with a team?
Yes, the plugin is designed to be used by teams. This means sharing the same knowledge base and see what others people in your team have already generated.
You can share the knowledge base with your team members, and they can use the plugin to generate localization keys and export files. [Contact us to collaborate](contact@gleef.eu).
### Can the plugin prevent key duplication?
Gleef Figma automatically checks for duplicate keys and ensures consistent naming conventions across your files, reducing the risk of runtime errors and making your localization workflow more efficient.
It might sometimes detect a repeating key while genearting, but only the export files won't contain any duplicated key.
***
## Generating keys
### How does the plugin generate keys?
The plugin generates keys based on the text content of the selected text elements. It uses a combination of the text content and the frame name to generate a unique key.
The plugin also checks for duplicate keys and ensures consistent naming conventions across your files, reducing the risk of runtime errors and making your localization workflow more efficient.
### How does the plugin handle nested frames?
The plugin handles nested frames by generating keys based on the text content of the selected text elements included in the **top-parent frame**.
This means that you can not see a subframe keys, but will generate and see all the keys included in the global frame.
### Do I need to name frame and elements in Figma?
Conversely to many current localization keys generator, you don't need to name your elements in Figma. The plugin will generate keys based on the text content of the selected text elements, as well as the overall context.
Let the magic happens, don't bother naming frames.
### Why frame & element names are not taken into account?
Mostly because in Figma, when you duplicate a frame, the name stays unchanged. This means it could be misleading if 2 frames have the same name but different content.
### Why some text elements have no keys linked?
It may happens if you generate keys for a specific frame, and then add a new text element in the frame.
### Why Gleef does not say `Existing key` whereas I've already generated these keys?
Existing keys is a tag referring to keys **saved in the knowledge base**. Meaning that you have imported these keys in the Figma Plugin ([see how](/figma-plugin/how-to/import-keys)).
Generating keys won't save them in the knowledge base as there is no evidence you used these keys somewhere in your code base. That is why you have to regularly update your knowledge base with your code base.
### Does element order has an impact?
Gleef doesn't rely on the order of your elements. It will generate keys based on the structure of your design, not the order of your elements.
This means that you can move elements around without worrying about the generation of your keys. It will not impact the generation of your keys.
### Does element size has an impact?
Gleef doesn't rely on the size of your elements. It will generate keys based on the structure of your design, not the size of your elements.
This means that you can resize elements without worrying about the generation of your keys. It will not impact the generation of your keys.
Frames containing a great number of text element (20+) might takes up more than 20 seconds to generate.
### It takes too long, should I use it on smaller frames?
No, it is not recommended to use Gleef on smaller frames as it will not be able to generate keys that are meaningful. Gleef is designed to work on frames containing multiple text elements.
Though, it is highly recommended **not to group screens** in a global frame as it might take too long to generate, if there are too many text elements.
***
## Managing keys
### How to delete a key?
You cannot delete keys, the only possibility is to `ignore` the key. This means the key won't be taken in the export.
### How to edit a key?
You can easily edit a key name by clicking on the edit button (pencil icon) next to the key name. This will open a modal where you can edit the key name.
Please, be aware you won't be able to rename the key with a key name that already exists in the selected frame.
### How to see to which element a key is linked?
By clicking on the key, it will focus the element in your Figma frame.
## Exporting keys
### How to export keys?
You can export keys by clicking on the export button in the bottom right corner of the plugin. This will open a modal where you can select the format you want to export your keys in. You can choose between JSON, CSV and XML.
For now, there is no direct integration with any localization software
### How to automatically integrates keys in my code base?
If you're using JSON as a reference, during the export, you can choose to merge files with an existing JSON. [See more](/figma-plugin/how-to/export-keys)
The file you upload for the merge won't be used to update the knowledge base. It will only be used to merge the new keys with the existing JSON file.
***
## Displaying keys
### How to display keys?
You can display keys by clicking on the display button of the plugin. This will automatically switch in the selected Frame from text values to keys.
No worries, data is stored.
As we do not duplicate Frame, you have to toggle back the same button, or use `ctrl + Z` or `cmd + Z` if you're a Mac user, to get back to the previous stage.
Nonetheless, no worries, Gleef's save everything in database, meaning you can't lose any text content when displaying keys.
***
For any additional questions or support, feel free to [contact us](mailto:support@gleef.eu).
# Embeddings
Source: https://docs.gleef.eu/figma-plugin/support/embeddings
*Embeddings are representations of values or objects like text, images, and audio that are designed to be consumed by machine learning models and semantic search algorithms.*
Gleef uses embeddings to store existing localization keys.
If you want to add existing keys to your project, please refer to [our tutorial](/figma-plugin/how-to/import-keys).
If you're using the Gleef CLI and Gleef Studio, translation memory is managed automatically, you don't have to do anything!
## Storing existing keys
### How existing keys are stored
Existing keys are stored in a vector database. This database is used to find the most similar keys to the one you are trying to translate. The similarity is calculated using the cosine similarity between the embeddings of the keys.
### How the AI works with existing keys
The AI leverages embeddings to:
1. Find semantically similar existing keys using cosine similarity
2. Use these similar keys as context to generate accurate translations
3. Prevent duplicate key creation by detecting similar existing keys
# Security and Privacy
Source: https://docs.gleef.eu/figma-plugin/support/security-privacy
*Security and privacy are core priorities at Gleef. We implement industry-standard security measures and follow strict privacy guidelines to protect your data.*
## Data storage
### Infrastructure
* Embeddings are stored in secure, encrypted vector databases
* All data is processed and stored in EU-based servers
* Regular backups ensure data durability
* Access is strictly controlled through authentication tokens
* No raw text is stored, only vector representations
* Embeddings are only accessible by your company and are not shared or used for any training
### Security measures
* End-to-end encryption
* Regular security audits
* Multi-factor authentication
* IP whitelisting options
* Real-time threat monitoring
## Data retention
### Retention policies
* Embeddings are retained as long as your account is active
* Deleted keys are removed from the database within 30 days
* Backup copies are retained for 90 days
* You can request complete data removal at any time
* Import history is maintained for 12 months
### Data management
* Full data export available
* Selective key deletion
* Audit logs for all changes
* Version history
* Regular cleanup processes
## Compliance
### Certifications and standards
* GDPR compliant processing and storage
* Regular security audits and penetration testing
* Data Processing Agreement (DPA) available upon request
* Annual compliance reviews and updates
### Privacy measures
* Data minimization principles
* Privacy by design approach
* Regular privacy impact assessments
* Transparent data processing
* Clear data usage policies
## Access control
### Authentication
* Multi-factor authentication support
* Single Sign-On (SSO) options
* Role-based access control
* Session management
* Activity monitoring
### Authorization
* Granular permission settings
* Team access controls
* API key management
* Audit logging
* Access reviews
## Incident response
### Response plan
1. Immediate threat containment
2. Impact assessment
3. Stakeholder notification
4. Resolution implementation
5. Post-incident review
### Reporting
* 24/7 security monitoring
* Incident response team
* Regular status updates
* Post-incident reports
* Preventive measures implementation
## Additional resources
* [Under the Hood](/under-the-hood)
For security-related inquiries, please contact our security team at [security@gleef.eu](mailto:security@gleef.eu)
# Troubleshooting
Source: https://docs.gleef.eu/figma-plugin/support/trouble-shooting
*This guide helps you resolve common issues you might encounter while using Gleef. If you can't find a solution to your problem, don't hesitate to contact our support team.*
## Common import issues
### File parsing errors
Verify your file respects common CSV, XML or JSON formatting.
Here are the format we use:
* **CSV**:
```CSV theme={null}
key, value
```
* **JSON**: given a key named: parent.subparent.element with the value: value
```JSON theme={null}
{
"parent": {
"subparent": {
"element": "value"
}
}
```
* **XML**:
```xml theme={null}
value1
value2
```
Values are expected to be the same language as the one used to design your files
### File too large
Split the file into smaller chunks
### File encoding issues
Ensure the file is encoded in UTF-8, so that special characters are properly interpreted
### File format not supported
Gleef supports CSV, JSON, and XML files. If you need another file formatting, please try converting your file in another format, or [contact us](contact@gleef.eu).
## Plugin issues
### Plugin not loading
It can sometimes happen, mainly due to Figma. Try running it online (on your browser) or switching to Figma's app. Sometimes deleting the plugin and re-downloading it might also solve this issue.
### Slow performance
As you may have already experience using AI, it sometimes takes longer than usual to generate answers.
### Authentication errors
If you encounter any authentication errors, try logging out and logging back in. If the issue persists, please [contact us](contact@gleef.eu).
## Error while generating keys
### During generation
Try not to select another frame than the one you want to generate keys for. If the issue persists, please [contact us](contact@gleef.eu).
### Key duplication
It can sometimes happen that a key is duplicated in your screen while generating. It means that the element is the same and so only one key should be used.
You can edit the key name, but won't be able to get back to the duplicated status manually, as Gleef doesn't enable manual key duplication.
No worries, export files will only have one key.
### Existing Keys
* **Missing keys:** If some keys should be marked down as `existing` but are not, it might mean that they are not in the current knowledge base.
Try importing these keys and regenerate this frame, [see more on key import](/figma-plugin/how-to/import-keys).
* **Key value conflict:** A key can be tagged as existing, with a different value than the one in the knowledge base. If it is the case, the export file will have the value from the current Frame.
### Solutions
1. Check internet connection
2. Clear Figma plugin cache
3. Reload Figma
4. Check Gleef status page
5. Contact support if issues persist
## Getting help
* [Contact support](mailto:support@gleef.eu)
# Introduction
Source: https://docs.gleef.eu/studio/introduction
Manage translations, review changes, and customize AI rules in a centralized web platform
# Gleef Studio
Gleef Studio is a centralized web platform for translation management, offering a complete workflow from draft creation to publication. Built for teams and individuals who need professional translation control beyond automated tools.
## What is Gleef Studio?
Studio provides a web-based interface where you can:
* **Edit translations** directly in a table view across multiple languages
* **Review and approve** changes through a structured workflow
* **Create custom rules** to guide AI translation behavior
* **Search and organize** translations and rules across projects
* **Collaborate** with team members on translation projects
## Key Features
**Translation Management**
Edit translations in a spreadsheet-like interface with real-time collaboration and auto-save functionality.
**Review System**
Organize changes into reviewable changesets with approval workflows and team collaboration features.
**Translation Rules**
Create custom guidelines to ensure AI translations match your brand voice and formatting requirements.
**Search and Discovery**
Find translations and rules quickly across your entire project with unified search functionality.
**Integration Ready**
Connect with Figma for design context, CLI for development workflows, and API for custom integrations (coming soon).
## Getting Started
1. **Access Studio** through your Gleef dashboard at `app.gleef.eu`
2. **Import translations** from CLI, Figma plugin, or create manually
3. **Set up translation rules** to guide AI behavior and match your brand tone
4. **Review and publish** translations to your applications
Studio integrates seamlessly with Gleef CLI and Figma plugin, creating a complete translation ecosystem for your projects.
# Quickstart
Source: https://docs.gleef.eu/studio/quickstart
Get started with Gleef Studio in 5 minutes
## Access Your Dashboard
Navigate to `app.gleef.eu/dashboard` and log in with your Gleef account. You'll see:
* **Draft Translations** - Pending items awaiting review
* **Changes to Review** - Modifications ready for approval
## Start Translating
1. **Click "View my translations"** to access the translation table
2. **View other languages** using the "+" button in the header
3. **Click any cell** to edit translation content
4. **Changes save automatically** as you work
5. **Publish or ask for a review** with the top-right button
## Review and Publish
1. **Navigate to Review** to see pending changes
2. **Expand changeset cards** to review modifications
3. **Approve or reject** individual translations
4. **Use the Publish button** to deploy approved changes
## Set Up Translation Rules
1. **Go to Translation Rules** section
2. **Click "Create New Rule"** to customize AI behavior
3. **Define tone, formatting, and style guidelines**
4. **Rules automatically apply** to new translations
## Next Steps
* Use **Search** to find specific translations or rules
* Connect **Figma designs** for visual context
* Set up **API keys** for CLI integration
# Review System
Source: https://docs.gleef.eu/studio/review
Review and approve translation changes before publication
# Review System
The review system organizes translation changes into changesets for quality control and collaborative approval before publication. This guide walks you through the key workflows for reviewing translations efficiently.
## Understanding Changesets
Changes are grouped into **changesets** - collections of related translation modifications created when translators edit content. Each changeset includes:
* Creator information with avatar and name
* Number of modified translations
* Creation timestamp
* Optional description/comment explaining the changes
## Core Review Workflows
### 1. Reviewing a Set of Translations
This is the primary workflow for approving or rejecting translation changes.
**Step-by-step:**
1. **View pending changesets** - The review page displays all changesets awaiting review as collapsible cards
2. **Expand a changeset** - Click on any changeset card to expand it and see the full translation table
3. **Review the changes** - The table shows:
* Side-by-side diff view (draft vs. published versions)
* All translations are automatically selected for review by default
* Highlighted differences between old and new text
4. **Make a decision:**
* Click **Approve** to publish the selected translations immediately
* Click **Reject** to send translations back to draft status
* The button shows the number of items being approved/rejected (e.g., "Approve 12")
### 2. Filtering by Specific Language
When you need to focus on reviewing one language at a time (for example, you're in charge of Mexico Spanish)
**Step-by-step:**
1. **Select a language** - In the top-right corner, click the language dropdown (default: "All languages")
2. **Choose your target language** - Select from available languages (e.g., French, German, Spanish)
3. **Review filtered translations** - The interface now shows only translations for the selected language
4. **Approve/reject by language** - Actions only affect the selected language, allowing granular control
**Use cases:**
* Language-specific reviewers checking only their expertise area
* Reviewing machine-translated content language by language
* Prioritizing critical languages first
### 3. Previewing Figma Context of Translations
View translations in the context of your actual designs while reviewing.
**Step-by-step:**
1. **Open Figma preview** - Click the Figma icon next to any translation in the table
2. **View design context** - A modal opens showing:
* **Top section:** Translation table with all related strings
* **Bottom section:** Embedded Figma frame showing the design
3. **Navigate between elements** - Click the Figma icon on different translations to jump to their design location
4. **Edit while previewing** - You can edit translations directly in the preview modal
5. **Review with context** - Compare translations against the visual design to ensure proper fit and context
**Adding Figma URLs:**
* If a translation doesn't have a Figma URL, click "Add Figma URL"
* Paste the Figma link to connect the translation to its design element
* The URL is saved automatically for future reference
### 4. Partial Approval (Selective Review)
Review and approve only specific translations within a changeset.
**Step-by-step:**
1. **Expand the changeset** - Click to open the translation table
2. **Deselect translations** - By default all items are selected. Uncheck the boxes next to translations you don't want to approve
3. **Review your selection** - The Approve/Reject buttons update to show the count of selected items
4. **Approve selected items** - Click Approve to publish only the checked translations
5. **Remaining items** - Unselected translations remain in draft status for future review
**Use cases:**
* Some translations need revision but others are ready
* Reviewing in multiple passes
* Different approval authority for different content types
### 5. Editing Translations During Review
Make quick corrections without rejecting the entire changeset.
**Step-by-step:**
1. **Identify issues** - While reviewing, spot a translation that needs minor adjustment
2. **Click to edit** - Click directly on any translation text in the table
3. **Make changes** - Edit the text inline
4. **Auto-save** - Changes save automatically (watch for the save indicator in the top-right)
5. **Continue reviewing** - No need to reject and wait for resubmission
6. **Approve when ready** - Approve the changeset with your edits included
**Note:** A save status indicator shows when changes are being saved or have been saved successfully.
## Review Interface Reference
### Changeset Card (Collapsed)
* **Creator avatar and name** - Who made these changes
* **Item count** - Number of translations modified
* **Source indicator** - Where changes were made (e.g., "Edited in translations")
* **Timestamp** - When the changeset was created
* **Comment/description** - Optional explanation of changes
* **Expand/collapse icon** - Click anywhere on the card to toggle
### Changeset Card (Expanded)
* **Save indicator** - Shows auto-save status
* **Reject button** - Returns selected translations to draft
* **Approve button** - Publishes selected translations immediately
* **Translation table** - Shows all translations with:
* Checkboxes for selection
* Translation keys
* Diff view (old → new text)
* All target languages as columns
* Figma preview icons
* Inline editing capability
### Language Filter (Header)
* Located in top-right corner
* Shows current selection (e.g., "🌍 All languages" or "🇫🇷 France - French")
* Filters all visible changesets when changed
* Affects approve/reject actions
## Tips and Best Practices
**Efficient reviewing:**
* Use language filtering for focused review sessions
* Keep Figma preview open to verify visual context
* Expand one changeset at a time to avoid overwhelming the interface
**Quality assurance:**
* Always check Figma context for UI strings sizes
* Review all languages in a changeset together when possible
* Look for consistency across similar translations
* Verify that translations fit within design constraints
# Translation Rules
Source: https://docs.gleef.eu/studio/rules
Create custom rules to guide AI translation behavior
# Translation Rules
Translation Rules allow you to customize how AI generates translations, ensuring consistency with your brand voice and style across all languages.
## Creating Rules
### Rule Setup
1. **Navigate to Translation Rules** section
2. **Click "Create New Rule"** button
3. **Enter rule title** and detailed description
4. **Provide examples** of good and bad translations
5. **Save and activate** the rule
### Rule Types
**Tone and Voice**
* Control formality levels (formal vs casual)
* Define brand personality in translations
* Specify addressing conventions (tu/vous, Sie/du)
**Formatting Guidelines**
* Number formats (1,000 vs 1.000)
* Date formats (DD/MM/YYYY vs MM/DD/YYYY)
* Currency display (€100 vs 100€)
* Time formats (24-hour vs 12-hour)
**Language Structure**
* Prefer present tense and active voice
* Avoid complex sentence structures
* Use consistent terminology across translations
## Rule Examples
### Formal Tone Rule
```
Title: French Formal Address
Description: Always use "vous" form when addressing users in French
Example: "Connectez-vous" not "Connecte-toi"
```
### Currency Format Rule
```
Title: Euro Display Format
Description: Place euro symbol after amount with space
Example: "100 €" not "€100"
```
### Voice and Tone Rule
```
Title: Brand Voice
Description: Use "nous" when speaking as the company, "vous" when addressing users
Example: "Nous recommandons" not "On recommande"
```
## Managing Rules
### Rule Organization
* **Search rules** by title or description
* **Edit existing rules** to refine guidelines
* **Delete outdated rules** that no longer apply
* **View rule usage** in translations
### Rule Application
* **Automatic application** to new translations
* **Retroactive effects** may apply to existing content
* **Rule conflicts** resolved by priority order
* **Rule testing** with sample translations
## Best Practices
### Effective Rule Writing
* **Be specific** - provide clear, actionable guidance
* **Include examples** - show correct and incorrect usage
* **Consider context** - account for different content types
* **Keep updated** - regularly review and refine rules
### Rule Management
* **Start simple** - begin with basic tone and formatting rules
* **Add gradually** - introduce new rules based on observed needs
* **Test thoroughly** - verify rules produce expected results
* **Team alignment** - ensure rules reflect team consensus
### Common Rule Categories
* **Formality levels** for different languages
* **Brand voice consistency** across all content
* **Technical terminology** standardization
* **Cultural adaptation** for regional markets
# Search
Source: https://docs.gleef.eu/studio/search
Find translations and rules quickly across your projects
# Search
Studio provides unified search functionality to quickly find translations, rules, and content across your entire project.
## Search Interface
### Global Search
* **Access via header search bar** or `/search` page
* **Keyboard shortcut** `Ctrl/Cmd + F` from anywhere
* **Real-time results** as you type
* **Cross-entity search** finds content in translations and rules
### Search Categories
**All Results** - Combined search across translations and rules
**Translations** - Search translation keys and values
**Rules** - Search rule titles and descriptions
## Search Features
### Translation Search
* **Search by key names** - find specific translation identifiers
* **Search by content** - find text within translations
* **Multi-language search** - search across all language columns
* **Pattern matching** - use wildcards like `auth.*` or `button_*`
### Rule Search
* **Rule titles** - find rules by name
* **Rule descriptions** - search within rule content
* **Rule examples** - locate specific guidelines or examples
### Advanced Features
* **Highlighted results** - search terms emphasized in results
* **Pagination** - load more results progressively
* **Direct navigation** - click results to go to source content
* **Result counts** - see total matches per category
## Search Tips
### Effective Searching
* **Start broad** - use general terms, then narrow down
* **Use specific keywords** - more specific searches return better results
* **Try key patterns** - search `auth.*` for authentication-related content
* **Combine terms** - use multiple keywords to narrow results
### Search Strategies
* **Feature-based search** - find all translations for a specific feature
* **Language-specific search** - locate content in particular languages
* **Status-based search** - find draft vs published content
* **Creator-based search** - locate content by team member
## Integration with Other Features
### Table Integration
* **Integrated search** in translation table filters content instantly
* **Search persistence** maintains search state across navigation
* **Context highlighting** shows search matches in table cells
### Review Integration
* **Changeset search** - find specific sets of changes
* **Change content search** - search within modification details
* **Review status search** - filter by approval/rejection status
# Settings
Source: https://docs.gleef.eu/studio/settings
Configure Studio settings, API keys, and language preferences
# Settings
Configure Studio to work with your workflow through API keys, language settings, and integration preferences.
## API Keys
### Creating API Keys
1. **Navigate to Settings** → **API Keys**
2. **Click "Create API Key"**
3. **Enter descriptive name** for identification
4. **Copy key immediately** - shown only once for security
### Using API Keys
**CLI Integration:**
```bash theme={null}
gleef config set api-key YOUR_API_KEY
```
**Custom Applications:**
```http theme={null}
Authorization: Bearer YOUR_API_KEY
```
### Key Management
* **Partial key display** - only first/last characters shown for security
* **Delete keys** when no longer needed
* **Update integrations** when rotating keys
* **Store securely** - never commit to version control
## Language Settings
### Source Language
* **Set primary language** for your project
* **Reference language** for AI translations
* **Default language** for new translation keys
### Target Languages
* **Add target languages** from supported locales
* **Language picker** shows flags and names
* **Remove unused languages** to simplify interface
* **Settings sync** across all Studio features
## Project Configuration
### Company Settings
* **Organization name** and branding
* **Team member management** and permissions
* **Billing and subscription** information
* **Integration preferences** and defaults
### Workflow Preferences
* **Default review settings** for new changesets
* **Publication preferences** - auto-publish vs review-required
* **Notification settings** for team collaboration
* **Export format preferences** for file generation
## Integration Setup
### Figma Integration
* **Connect Figma account** for design context
* **Default file permissions** for team access
* **Preview settings** for design display
* **URL validation** and format requirements
### External Tools
* **Translation memory** system connections
* **CI/CD pipeline** integration setup
* **Webhook endpoints** for automated workflows
* **Third-party tool** API configurations
## Security and Privacy
### Access Control
* **User permissions** and role management
* **API key security** and rotation policies
* **Session management** and timeout settings
* **Two-factor authentication** (if available)
### Data Management
* **Export capabilities** for data portability
* **Backup settings** and retention policies
* **Data deletion** and privacy controls
* **Compliance settings** for regulatory requirements
# Managing Translations
Source: https://docs.gleef.eu/studio/translations
Edit and organize translations in the Studio interface
# Managing Translations
The translations interface provides a table view for editing content across multiple languages with real-time collaboration and auto-save.
## Translation Table
### Basic Operations
* **Click any cell** to start editing
* **Use Tab/Enter** to navigate between cells
* **Changes save automatically** with visual indicators
* **Edit multiple languages** side by side
* **Add languages** with the "+" button in the header
* **Hide/show columns** by right-clicking language headers
### Translations from the Gleef CLI and Figma plugin
* When you create translations using the CLI or Figma plugin, they will appear as drafts in the Studio
* To publish these drafts or request a review, simply click the button in the top-right corner of the Studio interface.
## Working with Translation Keys
Translation keys serve as unique identifiers:
* **Create new keys** directly in the table
* **Edit key names** by clicking the key column
* **Search by key patterns** to find related translations
## Publishing Changes
### Asking for review
When you're ready to publish:
1. **Select translations** you want to publish
2. **Click "Publish" or "Request Review"** in the header
3. **Changes are grouped** into changesets for review
4. **Published translations** appear in your live applications
## Collaboration Features
### Real-Time Editing
* **Saving indicators** show sync status
* **Change tracking** highlights modifications available to be published
* **Version history** preserves previous values
### Figma Preview
* **Link translations to designs** using Figma URLs or by publishing from the Figma Plugin
* **Preview visual context** to translate in context
* **Figma icons** indicate design-connected content
* **Maintain design consistency** during translation
## Search and Filtering
* **Real-time search** filters table content instantly
* **Search across keys and translations** in all languages
# Troubleshooting
Source: https://docs.gleef.eu/studio/troubleshooting
Common issues and solutions for Gleef Studio
Have any question or feedback? Book a [15 minutes](https://booking.gleef.eu/team/gleef/get-in-touch) chat or [email us](mailto:contact@gleef.eu).
# Troubleshooting
Resolve common Gleef Studio issues with these troubleshooting guides and solutions.
## Access Issues
### "No Subscription Found" Error
**Cause:** Your account isn't associated with an active Gleef subscription.
**Solutions:**
* **Contact your admin** if your company uses Gleef
* **Request a demo** to start a trial
* **Try Figma plugin** for basic functionality
* **Contact support** for account assistance
### Login Problems
* **Clear browser cache** to remove stored authentication data
* **Disable browser extensions** that might interfere
* **Try incognito mode** to rule out browser issues
* **Check network restrictions** like corporate firewalls
## Translation Table Issues
### Changes Not Saving
**Troubleshooting:**
* **Check connection status** for network issues
* **Verify edit permissions** for your account
* **Refresh page** to see if changes were actually saved
* **Check browser console** for JavaScript errors
### Slow Performance
* **Reduce visible columns** by hiding unused languages
* **Apply filters** to limit displayed translations
* **Clear browser cache** to remove corrupted data
* **Check internet connection** speed and stability
### Missing Translations
* **Check language filters** to ensure target language is visible
* **Verify publication status** - translations may be in draft
* **Review recent changes** in case content was modified
* **Use search** to locate specific translations
## Review Workflow Problems
### Review Items Not Appearing
**Possible causes:**
* **Filter settings** may hide relevant items
* **Insufficient permissions** to see review queue
* **Draft translations** only visible to the creator and not sent for review yet
### Cannot Approve/Reject
* **Check reviewer permissions** for approval authority
* **Refresh review page** to get current status
* **Check language selection** on the top-right of the review page
* **Clear selection** and try individual review
* **Check for conflicts** with other reviewers