public DexStringLocalizer(IDexTranslateApiClient client, ILogger <DexStringLocalizer> logger, IOptions <DexTranslateOptions> options, string key) { _client = client; _logger = logger; _options = options; _key = key; }
public DexStringLocalizerFactory(ILogger <DexStringLocalizer> logger, IOptions <DexTranslateOptions> options) { _logger = logger; _options = options; _client = new DexTranslateApiClient(options.Value.BaseUrl, options.Value.ApiKey, options.Value.ApiSecret); }