Skip to content

Commit

Permalink
ko: Make sure localized links are used rather than /en-US/* (part 2) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Jul 30, 2023
1 parent a5feec1 commit f8dad21
Show file tree
Hide file tree
Showing 100 changed files with 486 additions and 486 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/set

이 API로 값을 저장하거나 고치면, {{WebExtAPIRef("storage.onChanged")}} 이벤트가 발생한다.

비동기 함수로 [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)를 돌려준다.
비동기 함수로 [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise)를 돌려준다.

## 문법

Expand All @@ -23,11 +23,11 @@ let settingItem = browser.storage.<storageType>.set(
### 매개변수

- `keys`
- : 저장소에 저장할 하나 이상의 키/값 쌍을 가진 객체다. 이미 있는 항목이라면 그 값은 고쳐진다.값은 [기초 자료형](/ko/docs/Glossary/Primitive) (숫자, 논리값, 그리고 문자열 같은) 또는 [`배열`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)이다.`Function`, `Date`, `RegExp`, `Set`, `Map`, `ArrayBuffer` 기타등등 다른 자료형의 저장은 일반적으로 안된다. 지원되지 않는 이런 자료형들은 빈 객체로 저장되거나 에러를 발생시킨다. 정확한 것은 브라우저에 달렸다.
- : 저장소에 저장할 하나 이상의 키/값 쌍을 가진 객체다. 이미 있는 항목이라면 그 값은 고쳐진다.값은 [기초 자료형](/ko/docs/Glossary/Primitive) (숫자, 논리값, 그리고 문자열 같은) 또는 [`배열`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Array)이다.`Function`, `Date`, `RegExp`, `Set`, `Map`, `ArrayBuffer` 기타등등 다른 자료형의 저장은 일반적으로 안된다. 지원되지 않는 이런 자료형들은 빈 객체로 저장되거나 에러를 발생시킨다. 정확한 것은 브라우저에 달렸다.

### 반환값

반환된 [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)는 동작이 성공하면 아무런 인수없이 완료를 수행하고, 실패하면 에러 문장과 함께 거부를 수행한다.
반환된 [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise)는 동작이 성공하면 아무런 인수없이 완료를 수행하고, 실패하면 에러 문장과 함께 거부를 수행한다.

## 브라우저 호환성

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: Mozilla/Add-ons/WebExtensions/API/storage/sync

`sync` 저장 공간을 의미합니다. `sync` 저장 공간에 있는 데이터는 브라우저 사이에서 동기화되며 서로 다른 기기 간에 사용자가 브라우저에 로그인 한 경우 언제든지 접근 가능합니다.

Firefox에서 `sync.storage` 는 고유한 부가기능 ID에 의존성을 갖고 동작합니다. `sync.storage`, 를 사용하신다면 [`어플리케이션`](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/applications) manifest.json 파일에 있는 키를 통해 여러분의 부가기능에 고유한 ID를 부여해야 합니다.
Firefox에서 `sync.storage` 는 고유한 부가기능 ID에 의존성을 갖고 동작합니다. `sync.storage`, 를 사용하신다면 [`어플리케이션`](/ko/docs/Mozilla/Add-ons/WebExtensions/manifest.json/applications) manifest.json 파일에 있는 키를 통해 여러분의 부가기능에 고유한 ID를 부여해야 합니다.

이 API는 주로 여러분의 부가기능에 사용자 설정 정보를 저장하고 서로 다른 프로필 간에 설정을 동기화 할 수 있도록 사용됩니다. 이 API는 100KB까지 저장할 수 있습니다. 이보다 더 큰 데이터를 저장하려고 하는 경우, API 요청은 특정한 에러 메시지를 반환할 것입니다. 이 API는 아쉽게도 현재까지 특정한 성능을 보장하진 않습니다.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: Mozilla/Add-ons/WebExtensions/API/tabs/create

새 탭을 만든다.

이것은 비동기 함수로 [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)를 돌려준다.
이것은 비동기 함수로 [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise)를 돌려준다.

## 문법

Expand All @@ -24,7 +24,7 @@ var creating = browser.tabs.create(
- `active`{{optional_inline}}
- : `boolean`. 활성탭이 되는지를 정한다. 윈도우의 포커스에는 영향이 없다({{WebExtAPIRef('windows.update')}} 참조). 기본값은 `true`.
- `cookieStoreId` {{optional_inline}}
- : `string`. 탭의 쿠키 저장 ID를 `cookieStoreId`로 지정한다. 이 옵션은 확장이 `"cookies"` [권한](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions)을 가져야 쓸 수 있다.
- : `string`. 탭의 쿠키 저장 ID를 `cookieStoreId`로 지정한다. 이 옵션은 확장이 `"cookies"` [권한](/ko/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions)을 가져야 쓸 수 있다.
- `index`{{optional_inline}}
- : `integer`. 윈도우에서 탭의 위치를 지정한다. 쓸 수 있는 값은 0에서 윈도에 있는 탭의 수까지다.
- `openerTabId`{{optional_inline}}
Expand Down Expand Up @@ -55,7 +55,7 @@ var creating = browser.tabs.create(

### Return value

A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be fulfilled with a {{WebExtAPIRef('tabs.Tab')}} object containing details about the created tab. If the tab could not be created (for example, because `url` used a privileged scheme) the promise will be rejected with an error message.
A [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be fulfilled with a {{WebExtAPIRef('tabs.Tab')}} object containing details about the created tab. If the tab could not be created (for example, because `url` used a privileged scheme) the promise will be rejected with an error message.

## 브라우저 호환성

Expand Down
8 changes: 4 additions & 4 deletions files/ko/mozilla/add-ons/webextensions/api/tabs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can use most of this API without any special permission. However:
- {{WebExtAPIRef("tabs.MutedInfo")}}
- : This object contains a boolean indicating whether the tab is muted, and the reason for the last state change.
- {{WebExtAPIRef("tabs.PageSettings")}}
- : Used to control how a tab is rendered as a PDF by the [`tabs.saveAsPDF()`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/saveAsPDF) method.
- : Used to control how a tab is rendered as a PDF by the [`tabs.saveAsPDF()`](/ko/docs/Mozilla/Add-ons/WebExtensions/API/tabs/saveAsPDF) method.
- {{WebExtAPIRef("tabs.Tab")}}
- : This type contains information about a tab.
- {{WebExtAPIRef("tabs.TabStatus")}}
Expand All @@ -60,7 +60,7 @@ You can use most of this API without any special permission. However:
- {{WebExtAPIRef("tabs.captureVisibleTab()")}}
- : Creates a data URL encoding an image of the visible area of the currently active tab in the specified window.
- {{WebExtAPIRef("tabs.connect()")}}
- : Sets up a messaging connection between the extension's background scripts (or other privileged scripts, such as popup scripts or options page scripts) and any [content scripts](/en-US/docs/Mozilla/Add-ons/WebExtensions/Content_scripts) running in the specified tab.
- : Sets up a messaging connection between the extension's background scripts (or other privileged scripts, such as popup scripts or options page scripts) and any [content scripts](/ko/docs/Mozilla/Add-ons/WebExtensions/Content_scripts) running in the specified tab.
- {{WebExtAPIRef("tabs.create()")}}
- : Creates a new tab.
- {{WebExtAPIRef("tabs.detectLanguage()")}}
Expand All @@ -76,9 +76,9 @@ You can use most of this API without any special permission. However:
- {{WebExtAPIRef("tabs.getAllInWindow()")}} {{deprecated_inline}}
- : Gets details about all tabs in the specified window.
- {{WebExtAPIRef("tabs.getCurrent()")}}
- : Gets information about the tab that this script is running in, as a [`tabs.Tab`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/Tab) object.
- : Gets information about the tab that this script is running in, as a [`tabs.Tab`](/ko/docs/Mozilla/Add-ons/WebExtensions/API/tabs/Tab) object.
- {{WebExtAPIRef("tabs.getSelected()")}} {{deprecated_inline}}
- : Gets the tab that is selected in the specified window. **Deprecated: use [`tabs.query({active: true})`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/query) instead.**
- : Gets the tab that is selected in the specified window. **Deprecated: use [`tabs.query({active: true})`](/ko/docs/Mozilla/Add-ons/WebExtensions/API/tabs/query) instead.**
- {{WebExtAPIRef("tabs.getZoom()")}}
- : Gets the current zoom factor of the specified tab.
- {{WebExtAPIRef("tabs.getZoomSettings()")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ slug: Mozilla/Add-ons/WebExtensions/API/tabs/insertCSS
이 API를 사용하기 위해 여러분은 해당 페이지 URL에 대한 허가가 필요합니다. 이 허가에 대한 요청은 [호스트 허가](/en-US/Add-ons/WebExtensions/manifest.json/permissions#Host_permissions)를 통하거나 [활성화 된 탭 허가](/en-US/Add-ons/WebExtensions/manifest.json/permissions#activeTab_permission)을 사용할 수도 있습니다.

You can only inject CSS into pages whose URL can be expressed using a [match pattern](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns): meaning, its scheme must be one of "http", "https", or "file". This means that you can't inject CSS into any of the browser's built-in pages, such as about:debugging, about:addons, or the page that opens when you open a new empty tab.
You can only inject CSS into pages whose URL can be expressed using a [match pattern](/ko/docs/Mozilla/Add-ons/WebExtensions/Match_patterns): meaning, its scheme must be one of "http", "https", or "file". This means that you can't inject CSS into any of the browser's built-in pages, such as about:debugging, about:addons, or the page that opens when you open a new empty tab.

> **Note:** Firefox resolves URLs in injected CSS files relative to the CSS file itself, rather than to the page it's injected into.
The inserted CSS may be removed again by calling {{WebExtAPIRef("tabs.removeCSS()")}}.

This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) (on Firefox only).
This is an asynchronous function that returns a [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise) (on Firefox only).

## Syntax

Expand All @@ -44,7 +44,7 @@ let inserting = browser.tabs.insertCSS(

- : `string`. This can take one of two values: "user", to add the CSS as a user stylesheet or "author" to add it as an author stylesheet. If this option is omitted, the CSS is added as an author stylesheet.

- "user" enables you to prevent websites from overriding the CSS you insert: see [Cascading order](/en-US/docs/Web/CSS/Cascade#cascading_order).
- "user" enables you to prevent websites from overriding the CSS you insert: see [Cascading order](/ko/docs/Web/CSS/Cascade#cascading_order).
- "author" stylesheets behave as if they appear after all author rules specified by the web page. This behavior includes any author stylesheets added dynamically by the page's scripts, even if that addition happens after the `insertCSS` call completes.

- `file` {{optional_inline}}
Expand All @@ -58,7 +58,7 @@ let inserting = browser.tabs.insertCSS(

### Return value

A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be fulfilled with no arguments when all the CSS has been inserted. If any error occurs, the promise will be rejected with an error message.
A [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be fulfilled with no arguments when all the CSS has been inserted. If any error occurs, the promise will be rejected with an error message.

## Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ To do this, you must have the "webRequestBlocking" API permission as well as the
## Properties

- {{WebExtAPIRef("webRequest.MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES", "webRequest.MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES")}}
- : The maximum number of times that <code><a href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/WebRequest/handlerBehaviorChanged" title="Suppose an add-on&#x27;s job is to block web requests against a pattern, and the following scenario happens:"><code>handlerBehaviorChanged()</code></a></code> can be called in a 10 minute period.
- : The maximum number of times that <code><a href="https://developer.mozilla.org/ko/docs/Mozilla/Add-ons/WebExtensions/API/WebRequest/handlerBehaviorChanged" title="Suppose an add-on&#x27;s job is to block web requests against a pattern, and the following scenario happens:"><code>handlerBehaviorChanged()</code></a></code> can be called in a 10 minute period.

## Methods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ To cancel or redirect the request, first include `"blocking"` in the `extraInfoS
- to cancel the request, include a property `cancel` with the value `true`.
- to redirect the request, include a property `redirectUrl` with the value set to the URL to which you want to redirect.

If an extension wants to redirect a public (e.g. HTTPS) URL to an [extension page](/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Extension_pages), the extension's manifest.json file must contain a [web_accessible_resources](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/web_accessible_resources) key that lists the URL for the extension page.
If an extension wants to redirect a public (e.g. HTTPS) URL to an [extension page](/ko/docs/Mozilla/Add-ons/WebExtensions/user_interface/Extension_pages), the extension's manifest.json file must contain a [web_accessible_resources](/ko/docs/Mozilla/Add-ons/WebExtensions/manifest.json/web_accessible_resources) key that lists the URL for the extension page.

When multiple blocking handlers modify a request, only one set of modifications take effect. Redirects and cancellations have the same precedence. So if you canceled a request, you might see another request with the same `requestId` again if another blocking handler redirected the request.

From Firefox 52 onwards, instead of returning `BlockingResponse`, the listener can return a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved with a `BlockingResponse`. This enables the listener to process the request asynchronously.
From Firefox 52 onwards, instead of returning `BlockingResponse`, the listener can return a [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved with a `BlockingResponse`. This enables the listener to process the request asynchronously.

If you use `"blocking"`, you must have the ["webRequestBlocking" API permission](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#api_permissions) in your manifest.json.
If you use `"blocking"`, you must have the ["webRequestBlocking" API permission](/ko/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#api_permissions) in your manifest.json.

## Syntax

Expand Down Expand Up @@ -52,7 +52,7 @@ Events have three functions:
- `details`
- : [`object`](#details). Details about the request. See [`details`](#details_2) below.

Returns: {{WebExtAPIRef('webRequest.BlockingResponse')}}. If `"blocking"` is specified in the `extraInfoSpec` parameter, the event listener should return a `BlockingResponse` object, and can set either its `cancel` or its `redirectUrl` properties. From Firefox 52 onwards, instead of returning `BlockingResponse`, the listener can return a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved with a `BlockingResponse`. This enables the listener to process the request asynchronously.
Returns: {{WebExtAPIRef('webRequest.BlockingResponse')}}. If `"blocking"` is specified in the `extraInfoSpec` parameter, the event listener should return a `BlockingResponse` object, and can set either its `cancel` or its `redirectUrl` properties. From Firefox 52 onwards, instead of returning `BlockingResponse`, the listener can return a [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved with a `BlockingResponse`. This enables the listener to process the request asynchronously.

- `filter`
- : {{WebExtAPIRef('webRequest.RequestFilter')}}. A filter that restricts the events that will be sent to this listener.
Expand Down Expand Up @@ -175,7 +175,7 @@ Regarding DNS resolution when BlockingResponse is used with OnBeforeRequest: In

## Examples

This code logs the URL for every resource requested which matches the [\<all_urls>](/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns#all_urls) pattern:
This code logs the URL for every resource requested which matches the [\<all_urls>](/ko/docs/Mozilla/Add-ons/WebExtensions/Match_patterns#all_urls) pattern:

```js
function logURL(requestDetails) {
Expand All @@ -188,7 +188,7 @@ browser.webRequest.onBeforeRequest.addListener(
);
```

This code cancels requests for images that are made to URLs under "https\://mdn.mozillademos.org/" (to see the effect, visit any page on MDN that contains images, such as [webRequest](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest)):
This code cancels requests for images that are made to URLs under "https\://mdn.mozillademos.org/" (to see the effect, visit any page on MDN that contains images, such as [webRequest](/ko/docs/Mozilla/Add-ons/WebExtensions/API/webRequest)):

```js
// match pattern for the URLs to redirect
Expand All @@ -210,7 +210,7 @@ browser.webRequest.onBeforeRequest.addListener(
);
```

This code replaces, by redirection, all network requests for images that are made to URLs under "https\://mdn.mozillademos.org/" (to see the effect, visit any page on MDN that contains images, such as [webRequest](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest)):
This code replaces, by redirection, all network requests for images that are made to URLs under "https\://mdn.mozillademos.org/" (to see the effect, visit any page on MDN that contains images, such as [webRequest](/ko/docs/Mozilla/Add-ons/WebExtensions/API/webRequest)):

```js
// match pattern for the URLs to redirect
Expand All @@ -235,7 +235,7 @@ browser.webRequest.onBeforeRequest.addListener(
);
```

This code is exactly like the previous example, except that the listener handles the request asynchronously. It returns a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that sets a timer, and resolves with the redirect URL when the timer expires:
This code is exactly like the previous example, except that the listener handles the request asynchronously. It returns a [`Promise`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise) that sets a timer, and resolves with the redirect URL when the timer expires:

```js
// match pattern for the URLs to redirect
Expand Down
4 changes: 2 additions & 2 deletions files/ko/mozilla/add-ons/webextensions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Extension(이하 확장기능)은 브라우저의 기능을 확장하고 수정
- [첫번째 확장기능](/en-US/Add-ons/WebExtensions/Your_first_WebExtension)
- [두번째 확장기능](/en-US/Add-ons/WebExtensions/Your_second_WebExtension)
- [확장기능의 구조](/en-US/Add-ons/WebExtensions/Anatomy_of_a_WebExtension)
- [파이어폭스 개발 로드맵](/en-US/docs/Mozilla/Add-ons/WebExtensions/Firefox_workflow_overview)
- [파이어폭스 개발 로드맵](/ko/docs/Mozilla/Add-ons/WebExtensions/Firefox_workflow_overview)
- [확장기능의 예시](/en-US/Add-ons/WebExtensions/Examples)
- [그 다음은?](/en-US/docs/Mozilla/Add-ons/WebExtensions/What_next_)
- [그 다음은?](/ko/docs/Mozilla/Add-ons/WebExtensions/What_next_)

## 개념

Expand Down
Loading

0 comments on commit f8dad21

Please sign in to comment.