code: public String getText(String textInBaseLanguage) {
          String textIfRetrievalFails = "Missing " + currentLanguage + " text for: " + textInBaseLanguage;
          if (!isInternationalizedTestsSuite() || currentLanguage == null || baseLanguage == null || baseLanguage.equals(currentLanguage)) {
              return textInBaseLanguage;
          } else if (!translatedStrings.isEmpty()) {
              // Searching for the translation of the base string to the current language
              for (Map<String, String> translationsMap : translatedStrings) {
                  String recordInBaseLanguage = translationsMap.get(baseLanguage);
                  // Identifying the matching record by text in base language
                  if (recordInBaseLanguage != null) {
                      String recordInBaseLanguageWithResolvedVariables = getTextWithResolvedVariables(textInBaseLanguage, recordInBaseLanguage, false);
                      if (recordInBaseLanguageWithResolvedVariables.equals(textInBaseLanguage)) {
                          String expectedTextWithVariables = translationsMap.get(currentLanguage);
                          if (expectedTextWithVariables != null && !expectedTextWithVariables.equals("")) {
                              // Resolving variable values if the matching translation contains variables
                              return getTextWithResolvedVariables(textInBaseLanguage, expectedTextWithVariables, true);
                          }
                      }
                  }
              }
          }
          return textIfRetrievalFails;
      }
docs: Gets the translation to the {@link #currentLanguage} of the specified text.
  If the translation contains variables, the values from textInBaseLanguage will be used.
  
  It doesn't work with partial translations for now.
  
  @param textInBaseLanguage text in the base language used in tests
  @return missing text if a translation is expected but not found;
  the matching translation if found;
  the original text if internationalization is disabled or languages are not set properly